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:
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user