storage-upload/server.js

14 lines
246 B
JavaScript
Raw Normal View History

2017-12-09 21:51:18 +00:00
import Koa from 'koa'
import config from './config'
import router from './api/router'
const app = new Koa()
app.use(router.routes())
app.use(router.allowedMethods())
const server = app.listen(config.get('server:port'))
export default server