add server

This commit is contained in:
2022-06-07 15:41:07 +08:00
parent 1f3e1752c5
commit 26a4c93ee1
7 changed files with 1996 additions and 148 deletions

18
bin/server/base.js Normal file
View File

@@ -0,0 +1,18 @@
import express from "express";
const app = express()
const port = 3000
app.get('/', (req, res) => {
res.send('Hello World!')
})
app.listen(port, () => {
console.log(`Example app listening on port ${port}`)
})
export function addouter(url,callback){
app.get(url,callback)
}

0
bin/server/index.js Normal file
View File