storage-upload/api/router.js

12 lines
233 B
JavaScript
Raw Normal View History

2017-12-09 21:51:18 +00:00
import Router from 'koa-router'
import * as test from './test/routes'
2017-12-10 09:45:38 +00:00
import * as media from './media/routes'
2017-12-09 21:51:18 +00:00
const router = new Router()
2017-12-09 22:55:25 +00:00
router.get('/', test.testStatic)
2017-12-10 09:45:38 +00:00
router.post('/media', media.upload)
2017-12-09 21:51:18 +00:00
export default router