Spaces:
Paused
Paused
Download routers/contactsRouter.js from arabdullah/chatty: direct link, hf CLI and curl.
- Browser
- Download file 319 Bytes
-
https://huggingface.co/spaces/arabdullah/chatty/resolve/main/routers/contactsRouter.js
- Command line
-
hf download hf://spaces/arabdullah/chatty/routers/contactsRouter.js
-
curl -L -o contactsRouter.js https://huggingface.co/spaces/arabdullah/chatty/resolve/main/routers/contactsRouter.js
319 Bytes
| const express = require("express"); | |
| const contactsController = require("../controllers/contactsController"); | |
| const router = express.Router(); | |
| router | |
| .route("/") | |
| .get(contactsController.getAllContacts) | |
| .post(contactsController.addNewContact) | |
| .delete(contactsController.deleteContact); | |
| module.exports = router; | |