wip version of the api
This commit is contained in:
parent
c24967dc74
commit
7d80b20390
8 changed files with 61 additions and 3 deletions
|
|
@ -1,12 +1,11 @@
|
|||
import express from "express";
|
||||
import type { Express } from "express";
|
||||
import { apiRouter } from "./routes/apiRouter.js";
|
||||
|
||||
export function createApp() {
|
||||
const app: Express = express();
|
||||
|
||||
app.get("/api/health", (_req, res) => {
|
||||
res.json({ status: "ok" });
|
||||
});
|
||||
app.use("/api/v1", apiRouter);
|
||||
|
||||
return app;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue