i dont understand the navigation with tabs and sub-stack routing but this is as close as im going to get it for now as it is 12:48 am and i must be up at 6:30 lol

This commit is contained in:
Will Baumbach
2025-08-08 00:49:33 -05:00
parent 72ebe5b2fc
commit 23c006857e
10 changed files with 213 additions and 125 deletions

View File

@@ -26,6 +26,8 @@ export const getAllPostsByStatus = async (req, res, next) => {
export const getPost = async (req, res, next) => {
const post = await Post.findById(req.params.id).exec()
post.photo = process.env.CLOUDFRONT_URL + post.photo
if (!post) {
return next('No document found with that id', 404)
}