]> PHS Git Server - phs-api.git/commitdiff
Adding auth, media, and messaging.
authorcharleswrayjr <charleswrayjr@gmail.com>
Sat, 13 Sep 2025 08:09:00 +0000 (03:09 -0500)
committercharleswrayjr <charleswrayjr@gmail.com>
Sat, 13 Sep 2025 08:09:00 +0000 (03:09 -0500)
src/routes/post.routes.js

index 8c8b7cafc8558a77154011cfef69bc2fc018e28c..830a44ce9a40b5c0b24f2375babbcc4ff7ee2499 100644 (file)
@@ -16,7 +16,7 @@ module.exports = (passport) => {
   router.post('/create', validate_auth(passport), post_controller.create);
   router.get('/title/:title', validate_auth(passport), post_controller.find_by_title);
   router.get('/:id', validate_auth(passport), post_controller.find_one);
-  router.get('/', validate_auth(passport), post_controller.find_many);
+  router.get('/', post_controller.find_many);
   router.put('/:id', validate_auth(passport), post_controller.update);
   router.put('/:id/soft_delete', validate_auth(passport), post_controller.soft_delete);
   return router;