Add support for /w/SHORTUUID/ type links

This commit is contained in:
metalune 2022-03-12 23:25:50 +01:00
parent 5a23c4f0b7
commit 8f4bb33b74

View file

@ -404,6 +404,7 @@ async def search(domain, term, page):
pages_total=(results["total"] / 10)
)
@app.route("/<string:domain>/w/<string:id>/")
@app.route("/<string:domain>/videos/watch/<string:id>/")
async def video(domain, id):
data = peertube.video(domain, id)