Download pool/shard001/JavaScript/0006015_routes.js from Variable-role/sajaniemi_variable_dataset_large: direct link, hf CLI and curl.
- Browser
- Download file 419 Bytes
-
https://huggingface.co/datasets/Variable-role/sajaniemi_variable_dataset_large/resolve/main/pool/shard001/JavaScript/0006015_routes.js
- Command line
-
hf download hf://datasets/Variable-role/sajaniemi_variable_dataset_large/pool/shard001/JavaScript/0006015_routes.js
-
curl -L -o 0006015_routes.js https://huggingface.co/datasets/Variable-role/sajaniemi_variable_dataset_large/resolve/main/pool/shard001/JavaScript/0006015_routes.js
419 Bytes
| module.exports = function (app) { | |
| app.all('/*', function (req, res, next) { | |
| var arbitraryUrls = ['partials', 'api']; | |
| if (arbitraryUrls.indexOf(req.url.split('/')[1]) > -1) { | |
| next(); | |
| } else { | |
| res.render('layout'); | |
| } | |
| }); | |
| app.get('/partials/*', function (req, res, next) { | |
| res.render('.' + req.path, { title: 'Fakedata.org' }); | |
| }); | |
| }; |