Skip to content

Commit

Permalink
fix: Change the preview route to POST to accept body
Browse files Browse the repository at this point in the history
  • Loading branch information
diego3g committed Aug 11, 2021
1 parent 38f857c commit 101f606
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/infra/http/routes/templates.routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ templatesRouter.use(adaptMiddleware(makeEnsureAuthenticatedMiddleware()))
templatesRouter.get('/', adaptRoute(makeGetAllTemplatesController()))
templatesRouter.post('/', adaptRoute(makeCreateTemplateController()))
templatesRouter.get('/search', adaptRoute(makeSearchTemplatesController()))
templatesRouter.get('/preview', adaptRoute(makePreviewTemplateController()))
templatesRouter.post('/preview', adaptRoute(makePreviewTemplateController()))
templatesRouter.patch(
'/:templateId/set-as-default',
adaptRoute(makeSetDefaultTemplateController())
Expand Down

0 comments on commit 101f606

Please sign in to comment.