0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-30 19:42:43 +00:00

Revert "Initial pass at redirecting / to a landing page"

This reverts commit 468ccd748d.
This commit is contained in:
G.Ambatte
2022-04-02 10:11:59 +13:00
parent 468ccd748d
commit 6c7eb339f4
2 changed files with 0 additions and 20 deletions

View File

@@ -109,28 +109,9 @@ app.get('/robots.txt', (req, res)=>{
//Home page
app.get('/', async (req, res, next)=>{
const homePageId = config.get('homePage');
if(homePageId){
return res.redirect('/home');
}
// const brew = homePageId ? await getBrewFromId(homePageId, 'share') : { text: welcomeText } ;
const brew = {
text : welcomeText
};
req.brew = brew;
return next();
});
app.get('/home', async (req, res, next)=>{
const homePageId = config.get('homePage');
const brew = homePageId ? await getBrewFromId(homePageId, 'share') : { text: welcomeText } ;
// const brew = {
// text : welcomeText
// };
req.brew = brew;
return next();
});