2025SELab2-project-Dwengo/backend/src/routes/themes.ts
2025-02-28 17:21:03 +01:00

14 lines
414 B
TypeScript

import express from 'express';
import { getThemes, getThemeByTitle } from '../controllers/themes.js';
const router = express.Router();
// Query: language
// Route to fetch list of {key, title, description, image} themes in their respective language
router.get('/', getThemes);
// Arg: theme (key)
// Route to fetch list of hruids based on theme
router.get('/:theme', getThemeByTitle);
export default router;