feat: webui-test-0
This commit is contained in:
1 parent
913de7044b
commit
208c748647
5 files changed
+228
-14
No files matched your search
@@ -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`)
|
||||
})
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user