Download pool/shard004/JavaScript/0025217_index.js from Variable-role/sajaniemi_variable_dataset_large: direct link, hf CLI and curl.
- Browser
- Download file 999 Bytes
-
https://huggingface.co/datasets/Variable-role/sajaniemi_variable_dataset_large/resolve/main/pool/shard004/JavaScript/0025217_index.js
- Command line
-
hf download hf://datasets/Variable-role/sajaniemi_variable_dataset_large/pool/shard004/JavaScript/0025217_index.js
-
curl -L -o 0025217_index.js https://huggingface.co/datasets/Variable-role/sajaniemi_variable_dataset_large/resolve/main/pool/shard004/JavaScript/0025217_index.js
999 Bytes
| ; | |
| var controller = require('../controllers'); | |
| var helpers = require('../helpers'); | |
| module.exports = function(app, express) { | |
| // ROUTE FOR RESETTING DB WITH DEMO DATA | |
| app.get('/api/resetDBWithData', function(req, res){ | |
| controller.user.reset(); | |
| res.send('success'); | |
| }); | |
| // ROUTE FOR DISPLAYING DASHBOARD | |
| app.get('/api/users/:user_id/clients', function(req,res){ | |
| controller.dashboard.get(req,res); | |
| }); | |
| // ROUTE FOR CREATING A NEW CLIENT | |
| app.post('/api/users/:user_id/clients', function(req,res){ | |
| controller.user.post(req,res); | |
| }); | |
| // ROUTE FOR DISPLAYING PARTICULAR CLIENT | |
| app.get('/api/users/:user_id/clients/:client_id', function(req,res){ | |
| controller.client.get(req,res); | |
| }); | |
| // ROUTE FOR UPDATING A CLIENT | |
| app.put('/api/users/:user_id/clients/:client_id', controller.client.put); | |
| // ROUTE FOR GETTING FEED FOR A PARTICULAR CLIENT | |
| app.get('/api/users/:user_id/clients/:client_id/feed', function(req,res){ | |
| controller.feed.getOneClient(req,res); | |
| }) | |
| }; | |