mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-06 13:05:09 +00:00
remove: webui log
This commit is contained in:
@@ -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`);
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user