Skip to content

Commit

Permalink
docs: add note about express v5 for adding endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrobertlloyd committed Nov 18, 2024
1 parent 807c62a commit c834da2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/api/add-endpoint.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ outline: deep

An [endpoint](../concepts.md#endpoint) adds Express routes to an Indiekit server. Routes can add new pages to the web interface, or provide API endpoints that support IndieWeb (or other) protocols or APIs.

> [!NOTE]
> As of `v1.0.0-beta.20`, Indiekit uses [Express v5](https://expressjs.com/en/5x/api.html). Of particular note, this means paths should follow the [revised syntax for matching routes](https://expressjs.com/en/guide/migrating-5.html#path-syntax).
## Syntax

```js
Expand Down

0 comments on commit c834da2

Please sign in to comment.