Spaces:
Paused
Paused
Download src/routes/threads.js from Abhises/backlinks-api: direct link, hf CLI and curl.
- Browser
- Download file 493 Bytes
-
https://huggingface.co/spaces/Abhises/backlinks-api/resolve/main/src/routes/threads.js
- Command line
-
hf download hf://spaces/Abhises/backlinks-api/src/routes/threads.js
-
curl -L -o threads.js https://huggingface.co/spaces/Abhises/backlinks-api/resolve/main/src/routes/threads.js
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; | |