Add watcher routes to backend and frontend; implement routing and UI components for watcher management
This commit is contained in:
@@ -110,6 +110,10 @@ app.use('/api/roles', authenticateToken, rolesRouter);
|
||||
const inviteRouter = require('./routes/invite');
|
||||
app.use('/api/invite', authenticateToken, inviteRouter);
|
||||
|
||||
// Watcher routes (geschützt) - MIT ID-Hashing
|
||||
const watcherRouter = require('./routes/watcher');
|
||||
app.use('/api/watcher', authenticateToken, watcherRouter);
|
||||
|
||||
// Error handling middleware
|
||||
app.use((err, req, res, next) => {
|
||||
console.error(err.stack);
|
||||
|
||||
Reference in New Issue
Block a user