Skip to content

Commit

Permalink
feat: ITP-48 implement /api/quiz/anime
Browse files Browse the repository at this point in the history
  • Loading branch information
RickyRAV committed Oct 15, 2023
1 parent 29faf52 commit 96d1f0b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ app.get('/api/quiz/formula-one', async (req, res) => {
res.json({ questions });
});

app.get('/api/quiz/anime', async (req, res) => {
const questions = await generateQuizQuestions('anime', 4);
res.json({ questions });
});

const startServer = async () => {
const port = process.env.PORT || 3000;
app.listen(port, () => {
Expand Down

0 comments on commit 96d1f0b

Please sign in to comment.