qqbot/bin/server/base.js
2022-06-07 15:41:07 +08:00

18 lines
284 B
JavaScript

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)
}