Tried to convert server-node to TS, there are still some issues

This commit is contained in:
Saud Fatayerji
2023-11-10 23:41:31 +03:00
parent 7b702734f3
commit 458e9ed75b
10 changed files with 728 additions and 1219 deletions

View 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;