Fix track comment route
This commit is contained in:
parent
7fc9558e42
commit
71a04b1611
|
@ -264,8 +264,7 @@ async def put_track(req, slug: str):
|
||||||
|
|
||||||
|
|
||||||
@api.get("/tracks/<slug:str>/comments")
|
@api.get("/tracks/<slug:str>/comments")
|
||||||
async def get_track_comments(req):
|
async def get_track_comments(req, slug: str):
|
||||||
slug = req.ctx.get_single_arg("slug")
|
|
||||||
limit = req.ctx.get_single_arg("limit", default=20, convert=int)
|
limit = req.ctx.get_single_arg("limit", default=20, convert=int)
|
||||||
offset = req.ctx.get_single_arg("offset", default=0, convert=int)
|
offset = req.ctx.get_single_arg("offset", default=0, convert=int)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue