changing posts to reference clerkUserID rather than id in mongodb

This commit is contained in:
Will Baumbach
2025-08-06 23:24:43 -05:00
parent 482bc915a5
commit 0af55853f6
5 changed files with 7 additions and 5 deletions

View File

@@ -14,7 +14,7 @@ router.route('/').get(getAllPosts).post(createPost)
router.route('/:id').get(getPost).patch(updatePost).delete(deletePost)
router.route('/user/:user').get(getAllPostsByUser)
router.route('/user/:id').get(getAllPostsByUser)
router.route('/status/:status').get(getAllPostsByStatus)