Tried to convert server-node to TS, there are still some issues
This commit is contained in:
16
server-node/src/routes/api/api-controller.ts
Normal file
16
server-node/src/routes/api/api-controller.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import express, { Request, Response } from 'express';
|
||||
import fileUpload from 'express-fileupload';
|
||||
|
||||
import workflow from './workflow-controller';
|
||||
|
||||
const router = express.Router();
|
||||
router.use(fileUpload());
|
||||
|
||||
router.get("/", (req: Request, res: Response) => {
|
||||
// TODO: Implement root api endpoint
|
||||
res.status(501).json({"Error": "Unfinished Endpoint. This sould probably send some api docs?"});
|
||||
});
|
||||
|
||||
router.use("/workflow", workflow);
|
||||
|
||||
export default router;
|
||||
Reference in New Issue
Block a user