Added movability of dialogs
This commit is contained in:
12
backend/routers/adminRouter.js
Normal file
12
backend/routers/adminRouter.js
Normal file
@@ -0,0 +1,12 @@
|
||||
import { Router } from 'express';
|
||||
import { authenticate } from '../middleware/authMiddleware.js';
|
||||
import { getOpenInterests, changeInterest, deleteInterest, changeTranslation } from '../controllers/adminController.js';
|
||||
|
||||
const router = Router();
|
||||
|
||||
router.get('/interests/open', authenticate, getOpenInterests);
|
||||
router.post('/interest', authenticate, changeInterest);
|
||||
router.post('/interest/translation', authenticate, changeTranslation);
|
||||
router.delete('/interest/:id', authenticate, deleteInterest);
|
||||
|
||||
export default router;
|
||||
Reference in New Issue
Block a user