Skip to content

Commit

Permalink
Fix regression on route declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
sebelga committed Jun 9, 2020
1 parent 81bd037 commit 38defa6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const querySchema = schema.object({
});

export function registerCreateRoute({ router, license, lib }: RouteDependencies) {
router.put(
router.post(
{ path: addBasePath('/index-templates'), validate: { body: bodySchema, query: querySchema } },
license.guardApiRoute(async (ctx, req, res) => {
const { callAsCurrentUser } = ctx.core.elasticsearch.legacy.client;
Expand Down

0 comments on commit 38defa6

Please sign in to comment.