mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-06 13:05:09 +00:00
feat: webui-test-0
This commit is contained in:
12
src/webui/index.ts
Normal file
12
src/webui/index.ts
Normal 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`)
|
||||
})
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user