update
This commit is contained in:
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) {
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user