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

@@ -1,3 +1,4 @@
// auth - fn that returns boolean
export function ensureServiceAuth(auth) {
return async (ctx, next) => {
let service = ctx.request.headers['x-service-name'];
@@ -10,3 +11,4 @@ export function ensureServiceAuth(auth) {
}
};
}