Add password change routes to backend and frontend; update routing and UI components for password management
This commit is contained in:
@@ -94,6 +94,10 @@ app.use('/api/holidays', authenticateToken, holidaysRouter);
|
||||
const profileRouter = require('./routes/profile');
|
||||
app.use('/api/profile', authenticateToken, profileRouter);
|
||||
|
||||
// Password routes (geschützt) - MIT ID-Hashing
|
||||
const passwordRouter = require('./routes/password');
|
||||
app.use('/api/password', authenticateToken, passwordRouter);
|
||||
|
||||
// Error handling middleware
|
||||
app.use((err, req, res, next) => {
|
||||
console.error(err.stack);
|
||||
|
||||
Reference in New Issue
Block a user