url_for_params
This commit is contained in:
parent
7bff037b78
commit
133b37c490
5 changed files with 57 additions and 9 deletions
|
|
@ -11,8 +11,8 @@ from htmx_patterns.infinite.models import PersonFactory
|
|||
config = get_config()
|
||||
|
||||
|
||||
@infinite_router.get("/persons")
|
||||
async def get_persons(request: Request, page: int = 1, n: int = 10):
|
||||
@infinite_router.get("/")
|
||||
async def infinite(request: Request, page: int = 1, n: int = 10):
|
||||
# simulated last page
|
||||
if page == 5:
|
||||
return config.templates.TemplateResponse(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue