new features, bookstack

This commit is contained in:
Matthias Hochmeister
2026-03-03 21:30:38 +01:00
parent 817329db70
commit d3561c1109
32 changed files with 1923 additions and 207 deletions

View File

@@ -0,0 +1,10 @@
import { Router } from 'express';
import bookstackController from '../controllers/bookstack.controller';
import { authenticate } from '../middleware/auth.middleware';
const router = Router();
router.get('/recent', authenticate, bookstackController.getRecent.bind(bookstackController));
router.get('/search', authenticate, bookstackController.search.bind(bookstackController));
export default router;

View File

@@ -104,6 +104,17 @@ router.get(
// Events CRUD
// ---------------------------------------------------------------------------
/**
* POST /api/events/import
* Bulk import events from CSV data. Requires admin or moderator.
*/
router.post(
'/import',
authenticate,
requireGroups(WRITE_GROUPS),
eventsController.importEvents.bind(eventsController)
);
/**
* POST /api/events
* Create a new event. Requires admin or moderator.