backlinks-api / src /routes /threads.js
Abhises's picture
added role for the user and notification form the admin to the user
3d52d95
Raw History Blame Contribute Delete
493 Bytes
const express = require('express');
const authMiddleware = require('../middleware/auth');
const threadsController = require('../controllers/threads');
const router = express.Router();
router.post('/', authMiddleware, threadsController.createThread);
router.get('/', authMiddleware, threadsController.getThreads);
router.get('/:id', authMiddleware, threadsController.getThreadById);
router.patch('/:id/status', authMiddleware, threadsController.updateThreadStatus);
module.exports = router;