You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
509 B
TypeScript

import Router from "@koa/router";
import { Middlewares } from "sealious";
import { accountsRouter } from "./account/account.routes";
import { MainView } from "./common/main-view";
import { loginRouter } from "./login/login.routes";
import { tasksRouter } from "./tasks/tasks.routes";
export const mainRouter = (router: Router): void => {
router.get("/", Middlewares.extractContext(), async (ctx) => {
ctx.body = MainView(ctx);
});
loginRouter(router);
tasksRouter(router);
accountsRouter(router);
};