Commit c11cf7b
authored
feat: expose layouts and pages on
This PR extracts the functionality from the `fs_routes` plugin and
exposes it onto `App`. These are the new APIs:
- `app.layout(pattern, route)`
- `app.onError(pattern, route)`
- `app.notFound(pattern, route)`
- `app.route(pattern, route)`
This also removes the need for `.use(staticFiles())`. This line can be
safely removed.
Fixes #3040
Fixes #3033
Fixes #2591
Fixes #950
Fixes #1918App (#3086)1 parent ccb621d commit c11cf7b
File tree
35 files changed
+1323
-966
lines changed- init/src
- src
- dev
- middlewares
- plugins/fs_routes
- runtime/server
- tests
- www
- routes/docs
35 files changed
+1323
-966
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
360 | 360 | | |
361 | 361 | | |
362 | 362 | | |
363 | | - | |
| 363 | + | |
364 | 364 | | |
365 | 365 | | |
366 | 366 | | |
367 | 367 | | |
368 | | - | |
369 | | - | |
370 | 368 | | |
371 | 369 | | |
372 | 370 | | |
| |||
0 commit comments