0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-04 21:12:41 +00:00

simplify getThemeBundle() by using just one loop

Also, removes need for special handling of the "first" theme.
This commit is contained in:
Trevor Buckner
2024-07-15 16:38:19 -04:00
parent 4951b9bf1a
commit 484b0a6dff
2 changed files with 28 additions and 57 deletions

View File

@@ -79,7 +79,7 @@ app.get('/robots.txt', (req, res)=>{
// Theme
// Path for User Themes
app.get('/theme/:id', asyncHandler(getBrew('theme', false)), asyncHandler(getThemeBundle));
app.get('/theme/:id', asyncHandler(getThemeBundle));
// Path for Static Themes
app.get('/theme/:renderer/:id', asyncHandler(getThemeBundle));