Skip to content

Commit

Permalink
fix plugin api path to be under /skServer path
Browse files Browse the repository at this point in the history
  • Loading branch information
panaaj committed Dec 13, 2020
1 parent 0eb7d27 commit b0fe775
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b0fe775

Please sign in to comment.