remove: webui log

This commit is contained in:
手瓜一十雪 2024-05-05 21:29:09 +08:00
parent ad251a7682
commit 9fe1eb3a42
3 changed files with 22 additions and 5 deletions

View File

@ -1,12 +1,18 @@
import express from 'express';
import { resolve } from 'node:path';
const app = express()
const app = express();
/**
* WebUI服务
* Express服务器以支持JSON解析和静态文件服务6099
*
* @returns {Promise<void>}
*/
export async function InitWebUi() {
app.use(express.json())
app.use('/webui', express.static(resolve(__dirname, './static')))
// 启动WebUi
app.use(express.json());
// 配置静态文件服务,提供./static目录下的文件服务访问路径为/webui
app.use('/webui', express.static(resolve(__dirname, './static')));
app.listen(6099, async () => {
console.log(`WebUi is running at IP:6099`)
//console.log(`WebUi is running at IP:6099`);
})
}

11
static/login.html Normal file
View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>NapCat - Login</title>
</head>
<body>
</body>
</html>