Add support for /w/SHORTUUID/ type links
This commit is contained in:
parent
5a23c4f0b7
commit
8f4bb33b74
1 changed files with 1 additions and 0 deletions
1
main.py
1
main.py
|
@ -404,6 +404,7 @@ async def search(domain, term, page):
|
||||||
pages_total=(results["total"] / 10)
|
pages_total=(results["total"] / 10)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@app.route("/<string:domain>/w/<string:id>/")
|
||||||
@app.route("/<string:domain>/videos/watch/<string:id>/")
|
@app.route("/<string:domain>/videos/watch/<string:id>/")
|
||||||
async def video(domain, id):
|
async def video(domain, id):
|
||||||
data = peertube.video(domain, id)
|
data = peertube.video(domain, id)
|
||||||
|
|
Loading…
Reference in a new issue