We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 599973b commit be03e4aCopy full SHA for be03e4a
init/src/init.ts
@@ -360,11 +360,13 @@ ${GRADIENT_CSS}`;
360
// Skip this and be silent if there is a network issue.
361
}
362
363
- const MAIN_TS = `import { App, fsRoutes } from "fresh";
+ const MAIN_TS = `import { App, fsRoutes, staticFiles } from "fresh";
364
import { define, type State } from "./utils.ts";
365
366
export const app = new App<State>();
367
368
+app.use(staticFiles());
369
+
370
// this is the same as the /api/:name route defined via a file. feel free to delete this!
371
app.get("/api2/:name", (ctx) => {
372
const name = ctx.params.name;
0 commit comments