flame/routes/config.js

19 lines
408 B
JavaScript
Raw Normal View History

2021-05-15 19:33:59 +03:00
const express = require('express');
const router = express.Router();
// middleware
const { auth, requireAuth } = require('../middleware');
2021-05-15 19:33:59 +03:00
const {
getCSS,
updateCSS,
getConfig,
updateConfig,
2021-05-15 19:33:59 +03:00
} = require('../controllers/config');
router.route('/').get(getConfig).put(auth, requireAuth, updateConfig);
2021-05-15 19:33:59 +03:00
router.route('/0/css').get(getCSS).put(auth, requireAuth, updateCSS);
2021-10-06 15:15:05 +03:00
module.exports = router;