Initial commit

This commit is contained in:
Rutra
2026-02-25 00:34:39 +01:00
commit 54b0fc3485
178 changed files with 12761 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
export default class AuthMiddleware {
redirectTo = '/login';
async handle(ctx, next, options = {}) {
await ctx.auth.authenticateUsing(options.guards, { loginRoute: this.redirectTo });
return next();
}
}
//# sourceMappingURL=auth_middleware.js.map