This commit is contained in:
tmshv committed 2016-08-04 23:46:59 +03:00
1 parent d7a4486b35
commit 144e69e6c4
7 files changed
+14 -81

No files matched your search

+3 -3
View File
@@ -1,13 +1,13 @@
import {put} from 'koa-route';
import compose from 'koa-compose';
import hm from 'hudozka-middlewares';
import query from 'koa-query';
import {toBoolean} from 'koa-query';
import {ejson, ensureServiceAuth} from 'hudozka-middlewares';
export function add(auth, data) {
return put('/timeline', compose([
hm.ensureServiceAuth(auth),
hm.ejson(),
ensureServiceAuth(auth),
ejson(),
query({
save: toBoolean()
}),