Download app.ts from testser2/mznodeapi: direct link, hf CLI and curl.
- Browser
- Download file 254 Bytes
-
https://huggingface.co/spaces/testser2/mznodeapi/resolve/main/app.ts
- Command line
-
hf download hf://spaces/testser2/mznodeapi/app.ts
-
curl -L -o app.ts https://huggingface.co/spaces/testser2/mznodeapi/resolve/main/app.ts
254 Bytes
| import express, { Express, Request, Response } from "express"; | |
| const app: Express = express(); | |
| app.get("/", (req: Request, res: Response) => { | |
| return res.send("Hello World"); | |
| }); | |
| app.listen(7860, () => { | |
| console.log("Listening on port 7860"); | |
| }); | |