mirror of
https://codeberg.org/SimpleWeb/SimpleerTube.git
synced 2024-11-24 01:21:30 +00:00
Add support for /w/SHORTUUID/ type links
This commit is contained in:
parent
5a23c4f0b7
commit
8f4bb33b74
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