storage-upload/server.js

13 lines
246 B
JavaScript

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