mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-05-09 20:38:40 +00:00
WIP
This commit is contained in:
+3
-3
@@ -447,7 +447,7 @@ export default async function createApp(vite) {
|
|||||||
}));
|
}));
|
||||||
|
|
||||||
|
|
||||||
const shareEmbedCommon = async(req)=>{
|
const shareEmbedCommon = async(req, res)=>{
|
||||||
|
|
||||||
const { brew } = req;
|
const { brew } = req;
|
||||||
req.ogMeta = { ...defaultMetaTags,
|
req.ogMeta = { ...defaultMetaTags,
|
||||||
@@ -475,13 +475,13 @@ export default async function createApp(vite) {
|
|||||||
|
|
||||||
//Share Page
|
//Share Page
|
||||||
app.get('/share/:id', dbCheck, asyncHandler(getBrew('share')), asyncHandler(async (req, res, next)=>{
|
app.get('/share/:id', dbCheck, asyncHandler(getBrew('share')), asyncHandler(async (req, res, next)=>{
|
||||||
shareEmbedCommon(req);
|
shareEmbedCommon(req,res);
|
||||||
return next();
|
return next();
|
||||||
}));
|
}));
|
||||||
|
|
||||||
//Embed Page - More work will be done on this later...
|
//Embed Page - More work will be done on this later...
|
||||||
app.get('/embed/:id', dbCheck, asyncHandler(getBrew('share')), asyncHandler(async (req, res, next)=>{
|
app.get('/embed/:id', dbCheck, asyncHandler(getBrew('share')), asyncHandler(async (req, res, next)=>{
|
||||||
shareEmbedCommon(req);
|
shareEmbedCommon(req,res);
|
||||||
return next();
|
return next();
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user