2025SELab2-project-Dwengo/backend/src/routes/themes.ts
2025-03-22 21:15:23 +01:00

14 lines
444 B
TypeScript

import express from 'express';
import { getThemesHandler, getHruidsByThemeHandler } 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('/', getThemesHandler);
// Arg: theme (key)
// Route to fetch list of hruids based on theme
router.get('/:theme', getHruidsByThemeHandler);
export default router;