Feature: Termine-Anzeige auf der Startseite
- Neue CSV-Datei backend/data/termine.csv für Termine-Speicherung - Backend-Controller und Router für /api/termine Endpoint - TermineWidget Component zur Anzeige von bevorstehenden Terminen - Integration in LoggedInView (Startseite für eingeloggte User) - Zeigt Datum, Titel, Beschreibung, Ort und Uhrzeit an - Sortiert nach Datum, filtert automatisch vergangene Termine
This commit is contained in:
@@ -16,6 +16,7 @@ import match3Router from './routers/match3Router.js';
|
||||
import taxiRouter from './routers/taxiRouter.js';
|
||||
import taxiMapRouter from './routers/taxiMapRouter.js';
|
||||
import taxiHighscoreRouter from './routers/taxiHighscoreRouter.js';
|
||||
import termineRouter from './routers/termineRouter.js';
|
||||
import cors from 'cors';
|
||||
import './jobs/sessionCleanup.js';
|
||||
|
||||
@@ -52,6 +53,7 @@ app.use('/api/forum', forumRouter);
|
||||
app.use('/api/falukant', falukantRouter);
|
||||
app.use('/api/friendships', friendshipRouter);
|
||||
app.use('/api/blog', blogRouter);
|
||||
app.use('/api/termine', termineRouter);
|
||||
|
||||
// Serve frontend SPA for non-API routes to support history mode clean URLs
|
||||
const frontendDir = path.join(__dirname, '../frontend');
|
||||
|
||||
Reference in New Issue
Block a user