Create a test backend server with ExpressJs

This commit is contained in:
2024-09-03 19:10:18 +02:00
parent 4ec710e899
commit 64f3769953
7 changed files with 1809 additions and 12 deletions

View File

@@ -0,0 +1,11 @@
import express, { Request, Response, NextFunction } from 'express'
export const routes = app => {
var router = express.Router()
router.get("/", (req: Request, res: Response, next: NextFunction) => {
res.send("Hello World from the backend!")
})
app.use("/api/", router)
}