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:
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 New Issue
Block a user