Skip to content

Commit

Permalink
Enable preview for tenant w/o vocab path param.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Wagner committed Sep 4, 2022
1 parent a14ec24 commit 304e709
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ routes.route('/:tenant([a-zA-Z0-9][a-zA-Z0-9_-]{0,})').post(controller.query)

// iii. do a preview for a vocabulary
routes.route('/:tenant([a-zA-Z0-9][a-zA-Z0-9_-]{0,})/_preview/:vocab([a-zA-Z0-9](([a-zA-Z0-9%.:_-]|\/[^_]){0,}))(/:id([a-zA-Z0-9][a-zA-Z0-9%.:/_-]{0,}))?').get(controller.preview)
routes.route('/:tenant([a-zA-Z0-9][a-zA-Z0-9_-]{0,})/_preview').get(controller.preview)

// iv. give a suggestion for a vocabulary
routes.route('/:tenant([a-zA-Z0-9][a-zA-Z0-9_-]{0,})/_suggest/entity').get(controller.suggest) // query parameters are: "prefix" and "cursor"
Expand Down

0 comments on commit 304e709

Please sign in to comment.