Files
sweet/packages/plugin-vite/tests/fixtures/basepath/main.ts
T
2026-11-11 11:45:20 -03:00

9 lines
233 B
TypeScript

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