Created API-Skeleton and some structure.

This commit is contained in:
2025-10-29 11:38:32 +01:00
parent 2edc0c9b29
commit a43895d918
4 changed files with 911 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
const express = require('express');
const video_Router = require("./routers/video_Router.js");
const app = express();
app.use(express.json);
const PORT = process.env.PORT || 3000;
app.listen(PORT, () =>
console.log( "Server running on PORT", PORT)
);
app.get("/api/v1/healthcheck", async (req,res) =>{
res.status(200).send("running")
});
app.use("/videos", video_Router);
app.use("/documents", documents);