feat: webui-test-0

This commit is contained in:
手瓜一十雪 committed 2024-05-05 14:32:48 +08:00
1 parent 913de7044b
commit 208c748647
5 files changed
+228 -14

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
import express from 'express';
import { resolve } from 'node:path';
const app = express()
export async function InitWebUi() {
app.use(express.json())
app.use('/webui', express.static(resolve(__dirname, './static')))
// 启动WebUi
app.listen(6099, async () => {
console.log(`WebUi is running at IP:6099`)
})
}