Files
sweet/init
Reed von Redwitz deeccd7e25 feat: add example of define.middleware to init (#2534)
The documentation for `MiddlewareFn` is out of date, because it
references a nonexistent `defineMiddleware` function. It's been updated
to reference the correct `define.middleware` function.

Additionally, I included an example of using this in the init project. I
also complicated the usage of `app.get` so that the function actually
uses the context. To make it clear to users of fresh 1 that this can be
equivalent to a file-based-route, I've included such a route as well.

The two new examples in `maini.ts` should make it much more clear to
fresh 1 users how the new system can work.
2024-06-23 22:46:04 +02:00
..
2024-06-08 09:07:32 +02:00
2024-05-24 09:40:08 +02:00

Create a new Fresh project.

This is a CLI tool to bootstrap a new Fresh project. To do so, run this command:

deno run -Ar jsr:@fresh/init

Go to https://fresh.deno.dev/ for more information about Fresh.