fix: .js toevoegen aan imports
This commit is contained in:
parent
887787de05
commit
4642040315
3 changed files with 9 additions and 9 deletions
|
@ -6,13 +6,13 @@ import themeRoutes from './routes/themes.js';
|
||||||
import learningPathRoutes from './routes/learningPaths.js';
|
import learningPathRoutes from './routes/learningPaths.js';
|
||||||
import learningObjectRoutes from './routes/learningObjects.js';
|
import learningObjectRoutes from './routes/learningObjects.js';
|
||||||
|
|
||||||
import studentRouter from './routes/student';
|
import studentRouter from './routes/student.js';
|
||||||
import groupRouter from './routes/group';
|
import groupRouter from './routes/group.js';
|
||||||
import assignmentRouter from './routes/assignment';
|
import assignmentRouter from './routes/assignment.js';
|
||||||
import submissionRouter from './routes/submission';
|
import submissionRouter from './routes/submission.js';
|
||||||
import classRouter from './routes/class';
|
import classRouter from './routes/class.js';
|
||||||
import questionRouter from './routes/question';
|
import questionRouter from './routes/question.js';
|
||||||
import loginRouter from './routes/login';
|
import loginRouter from './routes/login.js';
|
||||||
|
|
||||||
const app: Express = express();
|
const app: Express = express();
|
||||||
const port: string | number = getNumericEnvVar(EnvVars.Port);
|
const port: string | number = getNumericEnvVar(EnvVars.Port);
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import { Request, Response } from 'express';
|
import { Request, Response } from 'express';
|
||||||
import { getLearningObjectsFromPath } from '../services/learningObjects.js';
|
import { getLearningObjectsFromPath } from '../services/learningObjects.js';
|
||||||
import { FALLBACK_LANG } from '../config';
|
import { FALLBACK_LANG } from '../config.js';
|
||||||
|
|
||||||
export async function getAllLearningObjects(
|
export async function getAllLearningObjects(
|
||||||
req: Request,
|
req: Request,
|
||||||
|
|
|
@ -3,7 +3,7 @@ import path from 'path';
|
||||||
import yaml from 'js-yaml';
|
import yaml from 'js-yaml';
|
||||||
import { Request, Response } from 'express';
|
import { Request, Response } from 'express';
|
||||||
import { themes } from '../data/themes.js';
|
import { themes } from '../data/themes.js';
|
||||||
import { FALLBACK_LANG } from '../config';
|
import { FALLBACK_LANG } from '../config.js';
|
||||||
|
|
||||||
interface Translations {
|
interface Translations {
|
||||||
curricula_page: {
|
curricula_page: {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue