mirror of
https://github.com/pawelmalak/flame.git
synced 2025-07-19 03:29:37 +02:00
19 lines
486 B
JavaScript
19 lines
486 B
JavaScript
|
const asyncWrapper = require('../../middleware/asyncWrapper');
|
||
|
const File = require('../../utils/File');
|
||
|
const { join } = require('path');
|
||
|
|
||
|
// @desc Get custom CSS file
|
||
|
// @route GET /api/config/0/css
|
||
|
// @access Public
|
||
|
const getCSS = asyncWrapper(async (req, res, next) => {
|
||
|
const file = new File(join(__dirname, '../../public/flame.css'));
|
||
|
const content = file.read();
|
||
|
|
||
|
res.status(200).json({
|
||
|
success: true,
|
||
|
data: content,
|
||
|
});
|
||
|
});
|
||
|
|
||
|
module.exports = getCSS;
|