This commit is contained in:
payacom
2026-07-11 20:52:56 +03:30
parent 3c90976f23
commit 54971578b0
6 changed files with 103 additions and 10 deletions

View File

@@ -6,6 +6,7 @@ const {
createStoryBase64,
getStoriesFeed,
markStoryViewed,
updateStory,
deleteStory
} = require('../../../controllers/application/stories/storyController')
@@ -14,6 +15,7 @@ const router = express.Router()
router.get('/feed', getStoriesFeed)
router.post('/create-base64', auth, blockCheck, isHalfRegister, createStoryBase64)
router.post('/view', auth, blockCheck, markStoryViewed)
router.patch('/:storyId', auth, blockCheck, updateStory)
router.delete('/:storyId', auth, blockCheck, deleteStory)
module.exports = router