aboutsummaryrefslogtreecommitdiff
path: root/src/handler/fileView.ts
blob: 90c7176b94e219bf15ccb5e2d8c2059a840d1b2c (plain) (blame)
1
2
3
4
5
6
import type { HandlerFunc, Context } from "https://deno.land/x/abc@master/mod.ts";
import { cleanPath } from "../util/files.ts";

export const handlePath: HandlerFunc = async (c: Context) => {
    return await c.render("./src/views/index.html", { path: cleanPath(c.path) });
};