init
This commit is contained in:
7
app/middleware/auth_middleware.js
Normal file
7
app/middleware/auth_middleware.js
Normal file
@@ -0,0 +1,7 @@
|
||||
export default class AuthMiddleware {
|
||||
async handle(ctx, next, options = {}) {
|
||||
await ctx.auth.authenticateUsing(options.guards);
|
||||
return next();
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=auth_middleware.js.map
|
||||
Reference in New Issue
Block a user