diff --git a/src/models/climbing-route-rating/climbing_gyms/climbingGyms.router.ts b/src/models/climbing-route-rating/climbing_gyms/climbingGyms.router.ts index 16bb5b6..dd039b6 100644 --- a/src/models/climbing-route-rating/climbing_gyms/climbingGyms.router.ts +++ b/src/models/climbing-route-rating/climbing_gyms/climbingGyms.router.ts @@ -108,7 +108,7 @@ climbingGymRouter.get('/', async (req: Request, res: Response) => { * type: string * example: Karlsruhe * - in: query - * name: h-captcha-response + * name: hcaptcha_response * required: true * description: The hCaptcha response key * schema: @@ -119,7 +119,7 @@ climbingGymRouter.post('/', async (req: Request, res: Response) => { try { let name = req.query.name as string; let city = req.query.city as string; - let captcha_token = req.query['h-captcha-response'] as string; + let captcha_token = req.query['hcaptcha_response'] as string; if (!name || !city || !captcha_token) { res.status(400).send({'message': 'Missing parameters'}); diff --git a/src/models/climbing-route-rating/climbing_routes/climbingRoutes.router.ts b/src/models/climbing-route-rating/climbing_routes/climbingRoutes.router.ts index e792752..211ebdb 100644 --- a/src/models/climbing-route-rating/climbing_routes/climbingRoutes.router.ts +++ b/src/models/climbing-route-rating/climbing_routes/climbingRoutes.router.ts @@ -186,7 +186,7 @@ climbingRoutesRouter.get('/:id', async (req: Request, res: Response) => { * type: string * example: 'DE: 5, FR: 5c' * - in: query - * name: h-captcha-response + * name: hcaptcha_response * required: true * description: The hCaptcha response key * schema: @@ -198,7 +198,7 @@ climbingRoutesRouter.post('/', async (req: Request, res: Response) => { let gym_id = Number(req.query.gym_id); let name = req.query.name as string; let difficulty = req.query.difficulty as string; - let captcha_token = req.query['h-captcha-response'] as string; + let captcha_token = req.query['hcaptcha_response'] as string; if (isNaN(gym_id) || !name || !difficulty || !captcha_token) { res.status(400).send({'message': 'Missing parameters'}); diff --git a/src/models/climbing-route-rating/route_comments/routeComments.router.ts b/src/models/climbing-route-rating/route_comments/routeComments.router.ts index f3c8316..c3d445a 100644 --- a/src/models/climbing-route-rating/route_comments/routeComments.router.ts +++ b/src/models/climbing-route-rating/route_comments/routeComments.router.ts @@ -112,7 +112,7 @@ routeCommentsRouter.get('/by/route/:id', async (req: Request, res: Response) => * type: string * example: Nice route! Was a lot of fun! * - in: query - * name: h-captcha-response + * name: hcaptcha_response * required: true * description: The hCaptcha response key * schema: @@ -123,7 +123,7 @@ routeCommentsRouter.post('/', async (req: Request, res: Response) => { try { let route_id = req.query.route_id as string; let comment = req.query.comment as string; - let captcha_token = req.query['h-captcha-response'] as string; + let captcha_token = req.query['hcaptcha_response'] as string; if (!route_id || !comment || !captcha_token) { res.status(400).send({'message': 'Missing parameters'}); diff --git a/src/models/climbing-route-rating/route_ratings/routeRatings.router.ts b/src/models/climbing-route-rating/route_ratings/routeRatings.router.ts index 36d28ba..30f4851 100644 --- a/src/models/climbing-route-rating/route_ratings/routeRatings.router.ts +++ b/src/models/climbing-route-rating/route_ratings/routeRatings.router.ts @@ -97,7 +97,7 @@ routeRatingsRouter.get('/by/route/:id', async (req: Request, res: Response) => { * type: integer * example: 4 * - in: query - * name: h-captcha-response + * name: hcaptcha_response * required: true * description: The hCaptcha response key * schema: @@ -108,7 +108,7 @@ routeRatingsRouter.post('/', async (req: Request, res: Response) => { try { let route_id = req.query.route_id as string; let stars = Number(req.query.stars); - let captcha_token = req.query['h-captcha-response'] as string; + let captcha_token = req.query['hcaptcha_response'] as string; if (!route_id || isNaN(stars) || !captcha_token) { res.status(400).send({'message': 'Missing parameters'});