views/paging: add endless pager

This commit is contained in:
rr-
2016-04-12 23:49:46 +02:00
parent 7874614be3
commit b7a67fc01c
9 changed files with 150 additions and 4 deletions

View File

@ -39,7 +39,14 @@ class UsersController {
'/user/:name/delete',
(ctx, next) => { this.loadUserRoute(ctx, next); },
(ctx, next) => { this.deleteUserRoute(ctx, next); });
page.exit('/user/', (ctx, next) => { this.user = null; });
page.exit(/\/users\/.*/, (ctx, next) => {
pageController.stop();
next();
});
page.exit(/\/user\/.*/, (ctx, next) => {
this.user = null;
next();
});
}
listUsersRoute(ctx, next) {