123456789101112131415 |
- import express from "express";
- const app = express();
- app.get("/", (req, res) => {
- const lines = [
- `time:${Math.round(new Date().getTime() / 1000)}`,
- `tz:-21627`
- ]
- res.send(lines.join('\n'));
- });
- app.listen(3000, "0.0.0.0", () => {});
- console.log(`Server started on port 3000`);
|