routes cleaning up

This commit is contained in:
tmshv committed 2016-03-18 01:51:57 +03:00
1 parent 62d1dd1c2a
commit cc4a11c717
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -1,5 +1,5 @@
import route from 'koa-route';
import {index, json} from './';
import {json} from './';
import {sortByPattern} from '../utils/sort';
import db from '../core/db';
+1 -1
View File
@@ -1,6 +1,6 @@
import co from 'co';
import route from 'koa-route';
import {index, json} from './';
import {json} from './';
import {c} from '../core/db';
export default function (app) {
+1 -1
View File
@@ -3,7 +3,7 @@ import {json} from './';
import {getSchedule, getScheduleList, populateSchedule} from '../core/schedule';
module.exports = function (app) {
export default function (app) {
app.use(
route.get('/schedule/list', json(
function *() {