BREAKING: merge API routes and pages concept (#53)

This commit merges API routes and pages into a single concept. The
pages/api folder is now not special anymore.
This commit is contained in:
Luca Casonato
2021-09-25 10:49:53 +02:00
committed by GitHub
parent aeaddb1eaa
commit f5b3faf0d8
12 changed files with 150 additions and 121 deletions
+2 -3
View File
@@ -13,9 +13,8 @@ done automatically when you run the `fresh routes` command. You never have to
edit this file manually.
The files in the `pages` subfolder describe the HTML pages and API endpoints of
your application. Files inside the `pages/api` subdirectory are treated as API
routes, while all other files are treated as possibly dynamic HTML pages. More
info about how the `pages` subfolder works can be found on the
your application. All pages can act as both API endpoints and possibly dynamic
HTML pages. More info about how the `pages` subfolder works can be found on the
[file system routing](./file-system-routing.md) page.
Finally there is a `deps.ts` and `api_deps.ts`. These files are the central