From 4c979e114762b95c346db5d887c1f94731f8c59e Mon Sep 17 00:00:00 2001 From: Sean Mangar Date: Wed, 6 Aug 2025 13:56:41 +0300 Subject: [PATCH] Fix typo and add clearer info Fix typo and be more specific about where API endpoint can be accessed --- content/guides/09.extensions/2.api-extensions/2.endpoints.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/guides/09.extensions/2.api-extensions/2.endpoints.md b/content/guides/09.extensions/2.api-extensions/2.endpoints.md index 348aece6..72504e3d 100644 --- a/content/guides/09.extensions/2.api-extensions/2.endpoints.md +++ b/content/guides/09.extensions/2.api-extensions/2.endpoints.md @@ -25,7 +25,7 @@ Alternatively, you can export a configuration object to be able to customize the ```js export default { id: 'greet', - handler: (router, countext) => { + handler: (router, context) => { router.get('/', (req, res) => res.send('Hello, World!')); router.get('/intro', (req, res) => res.send('Nice to meet you.')); router.get('/goodbye', (req, res) => res.send('Goodbye!')); @@ -33,7 +33,7 @@ export default { }; ``` -The routes of this endpoint are accessible at `/greet`, `/greet/intro` and `/greet/goodbye`. +The routes of this endpoint are accessible at `{directus_host}:{directus_port}/greet`, `{directus_host}:{directus_port}/greet/intro` and `{directus_host}:{directus_port}/greet/goodbye`. ## Register Function