Add very basic support for finding and rendering templates

This commit is contained in:
2026-01-10 13:50:44 -06:00
parent 9e3329fa58
commit 6e96c33457
4 changed files with 67 additions and 0 deletions

View File

@@ -3,6 +3,7 @@
import nunjucks from "nunjucks";
import { DateTime } from "ts-luxon";
import { authRoutes } from "./auth/routes";
import { routes as basicRoutes } from "./basic/routes";
import { contentTypes } from "./content-types";
import { multiHandler } from "./handlers";
import { httpCodes } from "./http-codes";
@@ -24,6 +25,7 @@ const okText = (result: string): Result => {
const routes: Route[] = [
...authRoutes,
basicRoutes.hello,
{
path: "/slow",
methods: ["GET"],