feat: webui-test-0

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

12
src/webui/index.ts Normal file
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`)
})
}