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
+4 -4

No files matched your search

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