From b0fe7750943908e9560fbe150b195fdad09447f4 Mon Sep 17 00:00:00 2001 From: panaaj <38519157+panaaj@users.noreply.github.com> Date: Sun, 13 Dec 2020 15:43:26 +1030 Subject: [PATCH] fix plugin api path to be under /skServer path --- CHANGELOG.md | 2 +- src/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6a4a498..bb9036e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,7 @@ - Serve list of available resource types on the server at `/signalk/v1/api/resources`. -- Add api endpoint to list the resource types provided by the plugoin at `/plugins/sk-resources-fs/paths`. +- Add api endpoint to list the resource types provided by the plugoin at `/skSeerver/plugins/sk-resources-fs/paths`. ### v1.2.1 diff --git a/src/index.ts b/src/index.ts index 0027f72..4833928 100644 --- a/src/index.ts +++ b/src/index.ts @@ -224,7 +224,7 @@ module.exports = (server: ServerAPI): ServerPlugin=> { // add ./paths api route server.debug(`** Registering API route ./paths **`); router.get( - `/plugins/${plugin.id}/paths`, + `/skServer/plugins/${plugin.id}/paths`, (req:any, res:any)=> { res.status(200); server.debug(enabledResTypes);