Stirling-PDF/server-node/routes/api/index.js

15 lines
424 B
JavaScript
Raw Normal View History

2023-10-19 19:46:23 +02:00
import express from 'express';
import workflow from './workflow.js';
2023-10-20 00:10:03 +02:00
import fileUpload from 'express-fileupload';
2023-10-19 19:46:23 +02:00
const router = express.Router();
2023-10-20 00:10:03 +02:00
router.use(fileUpload());
2023-10-19 19:46:23 +02:00
router.get("/", function (req, res, next) {
2023-10-20 02:10:03 +02:00
// TODO: Implement root api endpoint
res.status(501).json({"Error": "Unfinished Endpoint. This sould probably send some api docs?"});
2023-10-19 19:46:23 +02:00
});
router.use("/workflow", workflow);
export default router;