From c834da2e3ff2571a7800fc339d5b9c430f9b5ed4 Mon Sep 17 00:00:00 2001 From: Paul Robert Lloyd Date: Mon, 18 Nov 2024 00:28:01 +0000 Subject: [PATCH] docs: add note about express v5 for adding endpoints --- docs/api/add-endpoint.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/api/add-endpoint.md b/docs/api/add-endpoint.md index 5dfb4a177..da85d0d48 100644 --- a/docs/api/add-endpoint.md +++ b/docs/api/add-endpoint.md @@ -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