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
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ UI routes export a default Solid component, while API Routes do not.
Rather, they export functions that are named after the HTTP method that they handle.

:::info
API routes are prioritized over page route alternatives.
API routes are prioritized over UI route alternatives.
If you want to have them overlap at the same path remember to use `Accept` headers.
Returning without a response in a `GET` route will fallback to page route handling.
Returning without a response in a `GET` route will fallback to UI route handling.
:::

## Writing an API route
Expand Down