1
0
mirror of https://git.sr.ht/~metalune/simpleweb_peertube synced 2024-12-22 14:44:42 +01:00

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) 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)