fix error on prod

This commit is contained in:
Alec Armbruster 2023-06-25 10:43:58 -04:00
parent d1404f3228
commit d1cf01061b
No known key found for this signature in database
GPG key ID: 52BC7C84E960FD1B

View file

@ -11,8 +11,7 @@ export default async (req: Request, res: Response) => {
const theme = req.params.name;
if (!theme.endsWith(".css")) {
res.statusCode = 400;
res.send("Theme must be a css file");
return res.status(400).send("Theme must be a css file");
}
const customTheme = path.resolve(extraThemesFolder, theme);