routes cleaning up
This commit is contained in:
1 parent
62d1dd1c2a
commit
cc4a11c717
3 files changed
+4
-4
No files matched your search
@@ -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,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) {
|
||||||
|
|||||||
@@ -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) {
|
|||||||
}
|
}
|
||||||
))
|
))
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
Reference in new issue
Block a user