app.js 271 B

12345678910111213
  1. const express = require('express')
  2. const router = require('./router.js')
  3. const config = require('./config.js')
  4. const app = express()
  5. app.use(express.json())
  6. app.use(router)
  7. app.listen(config.port,() =>{
  8. console.log('程序正在',config.port,'端口上运行')
  9. })