Skip to content

Commit

Permalink
fix: enforce query parameters validation
Browse files Browse the repository at this point in the history
  • Loading branch information
mhmadalaa committed Jul 11, 2024
1 parent 97a370b commit 7370876
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/routers/aiRoute.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ router

router
.route('/text-summarization/:id')
.get(authController.isLogin, textSummarizationController.summarizeQuestion);
.get(
authController.isLogin,
textSummarizationController.enforceQueryParams,
textSummarizationController.summarizeQuestion,
);

/*
TODO:
Expand Down

0 comments on commit 7370876

Please sign in to comment.