Change p from query var to route arg
This commit is contained in:
parent
f8ccb97d60
commit
a2b61558d3
1 changed files with 1 additions and 1 deletions
|
|
@ -100,7 +100,7 @@ async def api_gerty_wuille():
|
||||||
return data['facts'][random.randint(0, (len(data['facts']) - 1))]
|
return data['facts'][random.randint(0, (len(data['facts']) - 1))]
|
||||||
|
|
||||||
|
|
||||||
@gerty_ext.get("/api/v1/gerty/{gerty_id}")
|
@gerty_ext.get("/api/v1/gerty/{gerty_id}/{p}")
|
||||||
async def api_gerty_json(
|
async def api_gerty_json(
|
||||||
gerty_id: str,
|
gerty_id: str,
|
||||||
p: int = None # page number
|
p: int = None # page number
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue