mirror of
https://github.com/pawelmalak/flame.git
synced 2024-12-20 08:41:48 +03:00
19 lines
408 B
JavaScript
19 lines
408 B
JavaScript
const express = require('express');
|
|
const router = express.Router();
|
|
|
|
// middleware
|
|
const { auth, requireAuth } = require('../middleware');
|
|
|
|
const {
|
|
getCSS,
|
|
updateCSS,
|
|
getConfig,
|
|
updateConfig,
|
|
} = require('../controllers/config');
|
|
|
|
router.route('/').get(getConfig).put(auth, requireAuth, updateConfig);
|
|
|
|
router.route('/0/css').get(getCSS).put(auth, requireAuth, updateCSS);
|
|
|
|
module.exports = router;
|