Skip to content

Commit

Permalink
Merge pull request #8 from potathon/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
TopazKang authored Oct 2, 2024
2 parents 0ae8b5a + 8811f0a commit e41641f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions routes/posts.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ const storage = multer.diskStorage({
const upload = multer({storage});


router.get('/', listupPosts);
router.get('/api/', listupPosts);

router.get('/:id', readPost);
router.get('/api/:id', readPost);

router.post('/',upload.single('post_image_path') ,createPost);
router.post('/api/',upload.single('post_image_path') ,createPost);

router.patch('/', upload.single('post_image_path'), modifyPost);
router.patch('/api/', upload.single('post_image_path'), modifyPost);

router.delete('/', deletePost);
router.delete('/api/', deletePost);

module.exports = router;

0 comments on commit e41641f

Please sign in to comment.