collective router update

This commit is contained in:
tmshv committed 2016-02-24 18:49:28 +03:00
1 parent d4de62d133
commit f91dfcbcdf
2 files changed
+3 -5

No files matched your search

+2 -4
View File
@@ -4,9 +4,8 @@ import db from '../core/db';
import {getCourseNameByID} from '../models/course';
import team from '../models/team';
export default function (app) {
app.use(
route.get('/collective', json(
export default function () {
return route.get('/collective', json(
function *() {
this.type = 'application/json';
@@ -19,5 +18,4 @@ export default function (app) {
this.body = data;
}
))
);
};
+1 -1
View File
@@ -53,5 +53,5 @@ gallery(app);
instagram(app);
instagramIO(app);
documents(app);
collective(app);
app.use(collective());
app.use(error404());