wa-kuang-test / index.js
chb2024's picture
Create index.js
3af825f verified
raw
history blame contribute delete
462 Bytes
// 导入Express.js框架
const express = require('express');
const app = express();
// 设置端口号(Hugging Face默认端口)
const port = 8080;
// 定义根路由的GET请求
app.get('/', (req, res) => {
// 发送一个简单的响应,表示狗狗币挖矿正在正常运行
res.send('狗狗币挖矿正在正常运行...');
});
// 启动服务器
app.listen(port, () => {
console.log(`服务器正在运行于 http://localhost:${port}`);
});