mirror of
https://gitlab.rlp.net/proj-wise2526-video2document/video2document.git
synced 2026-06-15 18:01:52 +02:00
Created API-Skeleton and some structure.
This commit is contained in:
@@ -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);
|
||||
Reference in New Issue
Block a user