mirror of
https://github.com/Ride-The-Lightning/RTL.git
synced 2025-03-13 11:35:42 +01:00
11 lines
364 B
TypeScript
11 lines
364 B
TypeScript
import exprs from 'express';
|
|
const { Router } = exprs;
|
|
import { isAuthenticated } from '../../utils/authCheck.js';
|
|
import { getPageSettings, savePageSettings } from '../../controllers/shared/pageSettings.js';
|
|
|
|
const router = Router();
|
|
|
|
router.get('/', isAuthenticated, getPageSettings);
|
|
router.post('/', isAuthenticated, savePageSettings);
|
|
|
|
export default router;
|