0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 18:32:41 +00:00

Rename engine to renderer to unify naming

This value is named `renderer` everywhere else. Relabeling to a consistent name.
This commit is contained in:
Trevor Buckner
2024-07-13 18:06:46 -04:00
parent c9b885f868
commit e222811d03
2 changed files with 5 additions and 5 deletions

View File

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

View File

@@ -621,8 +621,8 @@ brew`);
it('should return an import of the theme including a parent.', async ()=>{
const req = {
params : {
engine : 'V3',
id : '5eDMG'
renderer : 'V3',
id : '5eDMG'
}
};
api.getStaticThemeCSS(req, res);
@@ -633,8 +633,8 @@ brew`);
it('should fail for an invalid static theme.', async()=>{
const req = {
params : {
engine : 'V3',
id : '5eDMGGGG'
renderer : 'V3',
id : '5eDMGGGG'
}
};
api.getStaticThemeCSS(req, res);