Files
sweet/packages/plugin-vite/tests/fixtures/basepath/main.ts
T

9 lines
228 B
TypeScript

import { App, staticFiles } from "@fresh/core";
export const app = new App({ basePath: "/ui" })
.use(staticFiles())
.get("/", () =>
new Response("<h1>ok</h1>", {
headers: { "Content-Type": "text/html" },
}));