File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ import moduleRouter from "#routes/module";
2121import { identifyUser } from "#middleware/identifyUser" ;
2222import departmentRouter from "#routes/department" ;
2323
24-
2524const app = express ( ) ;
2625const currDirName = dirname ( fileURLToPath ( import . meta. url ) ) ;
2726
@@ -43,6 +42,7 @@ app.use("/users", usersRouter);
4342app . use ( "/auth" , authRouter ) ;
4443app . use ( "/accreditation" , accreditationRouter ) ;
4544app . use ( "/infrastructure" , infrastructureRouter ) ;
45+ app . use ( "/department" , departmentRouter ) ;
4646app . use ( "/practical" , practicalRouter ) ;
4747app . use ( "/organization" , organizationRouter ) ;
4848app . use ( "/student" , studentRouter ) ;
@@ -52,5 +52,4 @@ app.use("/timetable", timetableRouter);
5252app . use ( "/department" , departmentRouter ) ;
5353app . use ( "/coursework" , courseworkRouter ) ;
5454app . use ( "/module" , moduleRouter ) ;
55-
5655export default app ;
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ async function showdepartments(req, res) {
5959
6060async function updatedDepartment ( req , res ) {
6161 const {
62- id, ... data
62+ id, data,
6363 } = req . body ;
6464 try {
6565 await updateDepartmentbyid ( id , data ) ;
You can’t perform that action at this time.
0 commit comments