full app
This commit is contained in:
15
routes/application/shareableLinks/index.js
Normal file
15
routes/application/shareableLinks/index.js
Normal file
@@ -0,0 +1,15 @@
|
||||
const express = require('express')
|
||||
const {
|
||||
getMyShareableLinks,
|
||||
toggleShareableLink,
|
||||
getShareableLinksForUsers
|
||||
} = require('../../../controllers/application/shareableLinks/shareableLinksController')
|
||||
const blockCheck = require('../../../middlewares/blockCheck')
|
||||
|
||||
const router = express.Router()
|
||||
|
||||
router.get('/mine', [blockCheck], getMyShareableLinks)
|
||||
router.post('/toggle', [blockCheck], toggleShareableLink)
|
||||
router.get('/for-users', [blockCheck], getShareableLinksForUsers)
|
||||
|
||||
module.exports = router
|
||||
Reference in New Issue
Block a user