Download server/src/routes/index.js from linuxrun/deer: direct link, hf CLI and curl.
- Browser
- Download file 406 Bytes
-
https://huggingface.co/spaces/linuxrun/deer/resolve/main/server/src/routes/index.js
- Command line
-
hf download hf://spaces/linuxrun/deer/server/src/routes/index.js
-
curl -L -o index.js https://huggingface.co/spaces/linuxrun/deer/resolve/main/server/src/routes/index.js
406 Bytes
| import { ICONFONT_URL } from '../constants'; | |
| var express = require('express'); | |
| var router = express.Router(); | |
| const clientRoutes = ['/', '/send', '/recv', '/recv/*', '/contact']; | |
| /* GET home page. */ | |
| clientRoutes.forEach(r => { | |
| router.get(r, function(req, res, next) { | |
| res.render('index', { | |
| title: '小鹿快传', | |
| iconfontUrl: ICONFONT_URL, | |
| }); | |
| }); | |
| }); | |
| module.exports = router; | |