Spaces:
Paused
Paused
Download src/app.js from canyuelangzzy/cursor: direct link, hf CLI and curl.
- Browser
- Download file 471 Bytes
-
https://huggingface.co/spaces/canyuelangzzy/cursor/resolve/main/src/app.js
- Command line
-
hf download hf://spaces/canyuelangzzy/cursor/src/app.js
-
curl -L -o app.js https://huggingface.co/spaces/canyuelangzzy/cursor/resolve/main/src/app.js
471 Bytes
| const express = require('express'); | |
| const morgan = require('morgan'); | |
| const app = express(); | |
| const config = require('./config/config'); | |
| const routes = require('./routes'); | |
| app.use(express.json({ limit: '50mb' })); | |
| app.use(express.urlencoded({ extended: true, limit: '50mb' })); | |
| app.use(morgan(process.env.MORGAN_FORMAT ?? 'tiny')); | |
| app.use("/", routes) | |
| app.listen(config.port, () => { | |
| console.log(`The server listens port: ${config.port}`); | |
| }); | |