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