12 lines
234 B
TypeScript
12 lines
234 B
TypeScript
import express from "express";
|
|
import type { Express } from "express";
|
|
|
|
export function createApp() {
|
|
const app: Express = express();
|
|
|
|
app.get("/api/health", (_req, res) => {
|
|
res.json({ status: "ok" });
|
|
});
|
|
|
|
return app;
|
|
}
|