mirror of
https://github.com/louislam/dockge.git
synced 2024-12-04 15:54:03 +00:00
16 lines
426 B
TypeScript
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;
|
|
}
|
|
|
|
}
|