ff-admin-server/src/routes/public.ts

15 lines
394 B
TypeScript
Raw Normal View History

2024-10-27 11:47:13 +01:00
import express from "express";
2025-04-20 16:15:27 +02:00
import { getApplicationConfig, getCalendarItemsByTypes } from "../controller/publicController";
2024-10-27 11:47:13 +01:00
var router = express.Router({ mergeParams: true });
router.get("/calendar", async (req, res) => {
await getCalendarItemsByTypes(req, res);
});
2025-04-20 16:15:27 +02:00
router.get("/configuration", async (req, res) => {
await getApplicationConfig(req, res);
});
2024-10-27 11:47:13 +01:00
export default router;