Added movability of dialogs
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { Router } from 'express';
|
||||
import { filterSettings, updateSetting, getTypeParamValueId, getTypeParamValues, getTypeParamValue, getAccountSettings } from '../controllers/settingsController.js';
|
||||
import { filterSettings, updateSetting, getTypeParamValueId, getTypeParamValues, getTypeParamValue, getAccountSettings,
|
||||
getPossibleInterests, getInterests, addInterest, addUserInterest, removeInterest } from '../controllers/settingsController.js';
|
||||
import { authenticate } from '../middleware/authMiddleware.js';
|
||||
|
||||
const router = Router();
|
||||
@@ -11,5 +12,10 @@ router.post('/account', authenticate, getAccountSettings);
|
||||
router.post('/getparamvalues', getTypeParamValues);
|
||||
router.post('/getparamvalueid', getTypeParamValueId);
|
||||
router.post('/getparamvalue/:id', getTypeParamValue);
|
||||
router.get('/getpossibleinterests', authenticate, getPossibleInterests);
|
||||
router.get('/getuserinterests', authenticate, getInterests);
|
||||
router.post('/addinterest', authenticate, addInterest);
|
||||
router.post('/setinterest', authenticate, addUserInterest);
|
||||
router.get('/removeinterest/:id', authenticate, removeInterest);
|
||||
|
||||
export default router;
|
||||
|
||||
Reference in New Issue
Block a user