I mean, it's unlikely that anyone would ever submit a URL with a
square bracket just before the prompt number, so this probably never
would have mattered all that much.
response.sendStatus(404);
});
response.sendStatus(404);
});
-router.post('/start/:prompt_id([[0-9]+)', (request, response) => {
+router.post('/start/:prompt_id([0-9]+)', (request, response) => {
const game = request.game;
const prompt_id = parseInt(request.params.prompt_id, 10);
const game = request.game;
const prompt_id = parseInt(request.params.prompt_id, 10);