Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion init/src/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -360,11 +360,13 @@ ${GRADIENT_CSS}`;
// Skip this and be silent if there is a network issue.
}

const MAIN_TS = `import { App, fsRoutes } from "fresh";
const MAIN_TS = `import { App, fsRoutes, staticFiles } from "fresh";
import { define, type State } from "./utils.ts";

export const app = new App<State>();

app.use(staticFiles());

// this is the same as the /api/:name route defined via a file. feel free to delete this!
app.get("/api2/:name", (ctx) => {
const name = ctx.params.name;
Expand Down
Loading