mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
client/routing: move routing to controllers
This commit is contained in:
@ -23,6 +23,16 @@ class AuthController {
|
||||
}
|
||||
}
|
||||
|
||||
registerRoutes() {
|
||||
page(/\/password-reset\/([^:]+):([^:]+)$/,
|
||||
(ctx, next) => {
|
||||
this.passwordResetFinishRoute(ctx.params[0], ctx.params[1]);
|
||||
});
|
||||
page('/password-reset', (ctx, next) => { this.passwordResetRoute(); });
|
||||
page('/login', (ctx, next) => { this.loginRoute(); });
|
||||
page('/logout', (ctx, next) => { this.logoutRoute(); });
|
||||
}
|
||||
|
||||
loginRoute() {
|
||||
topNavController.activate('login');
|
||||
this.loginView.render({
|
||||
|
Reference in New Issue
Block a user