flame/routes/config.js

16 lines
299 B
JavaScript

const express = require('express');
const router = express.Router();
const {
getCSS,
updateCSS,
getConfig,
updateConfig,
} = require('../controllers/config');
router.route('/').get(getConfig).put(updateConfig);
router.route('/0/css').get(getCSS).put(updateCSS);
module.exports = router;