0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-29 13:22:40 +00:00

Handle some statics

This commit is contained in:
David Bolack
2024-02-27 21:13:22 -06:00
parent 8f15887c03
commit 562daf9b04

View File

@@ -277,7 +277,7 @@ const api = {
getBrewThemeWithCSS : async (req, res)=>{
const brew = req.brew;
splitTextStyleAndMetadata(brew);
res.set('Content-Type', 'text/css');
res.setHeader('Content-Type', 'text/css');
const staticTheme = `/css/${req.brew.renderer}/${req.brew.theme}`;
const userTheme = `/css/${req.brew.theme.slice(1)}`;
const parentThemeImport = `@import url(\"${req.brew.theme[0] != '#' ? staticTheme : userTheme}\");\n\n/* From Brew: ${req.brew.title}*/\n\n`;