+ ejson middleware

This commit is contained in:
tmshv committed 2016-03-24 23:50:10 +03:00
1 parent aa18f77ea7
commit 82b9a6b56b
3 files changed
+21 -1

No files matched your search

+5 -1
View File
@@ -25,7 +25,11 @@ export default function(){
const app = new Koa();
app.proxy = true;
app.use(bodyParser());
app.use(bodyParser({
extendTypes: {
json: 'application/ejson'
}
}));
app.use($(logger()));
app.use(api());
app.use($(conditional()));