dockge/backend/routers/main-router.ts
Louis Lam 7d1da2ad99 wip
2023-10-26 13:23:45 +08:00

16 lines
426 B
TypeScript

import { DockgeServer } from "../dockgeServer";
import { Router } from "../router";
import express, { Express, Router as ExpressRouter } from "express";
export class MainRouter extends Router {
create(app: Express, server: DockgeServer): ExpressRouter {
const router = express.Router();
router.get("/", (req, res) => {
res.send(server.indexHTML);
});
return router;
}
}