feat: add, delete student route met user logic + .js in files
This commit is contained in:
parent
e0a5596994
commit
ecad27ea4d
29 changed files with 301 additions and 159 deletions
|
@ -1,5 +1,5 @@
|
|||
import { Request, Response } from 'express'
|
||||
import { getAllAssignments, getAssignment } from '../services/assignments';
|
||||
import { getAllAssignments, getAssignment } from '../services/assignments.js';
|
||||
|
||||
// typescript is annoy with with parameter forwarding from class.ts
|
||||
interface AssignmentParams {
|
||||
|
@ -41,4 +41,4 @@ export async function getAssignmentHandler(
|
|||
}
|
||||
|
||||
res.json(assignment);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue