mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-03 06:12:51 +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
|
// Path for User Themes
|
||||||
app.get('/theme/:id', asyncHandler(getBrew('theme', false)), asyncHandler(getThemeBundle));
|
app.get('/theme/:id', asyncHandler(getBrew('theme', false)), asyncHandler(getThemeBundle));
|
||||||
// Path for Static Themes
|
// Path for Static Themes
|
||||||
app.get('/theme/:engine/:id', asyncHandler(getThemeBundle));
|
app.get('/theme/:renderer/:id', asyncHandler(getThemeBundle));
|
||||||
|
|
||||||
//Home page
|
//Home page
|
||||||
app.get('/', (req, res, next)=>{
|
app.get('/', (req, res, next)=>{
|
||||||
|
|||||||
@@ -621,8 +621,8 @@ brew`);
|
|||||||
it('should return an import of the theme including a parent.', async ()=>{
|
it('should return an import of the theme including a parent.', async ()=>{
|
||||||
const req = {
|
const req = {
|
||||||
params : {
|
params : {
|
||||||
engine : 'V3',
|
renderer : 'V3',
|
||||||
id : '5eDMG'
|
id : '5eDMG'
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
api.getStaticThemeCSS(req, res);
|
api.getStaticThemeCSS(req, res);
|
||||||
@@ -633,8 +633,8 @@ brew`);
|
|||||||
it('should fail for an invalid static theme.', async()=>{
|
it('should fail for an invalid static theme.', async()=>{
|
||||||
const req = {
|
const req = {
|
||||||
params : {
|
params : {
|
||||||
engine : 'V3',
|
renderer : 'V3',
|
||||||
id : '5eDMGGGG'
|
id : '5eDMGGGG'
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
api.getStaticThemeCSS(req, res);
|
api.getStaticThemeCSS(req, res);
|
||||||
|
|||||||
Reference in New Issue
Block a user