📜  js 快递服务器 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:10.747000             🧑  作者: Mango

代码示例1
const http = require('http')
const express = require('express')

const app = express()
const server = http.Server(app)
app.set('port', 8888)
server.listen(8888)

app.get('/', (req, res) => {
  res.json({teste: true})
})