mirror of
https://github.com/redlib-org/redlib.git
synced 2025-06-08 07:37:45 +00:00
Individually proxy videos
This commit is contained in:
parent
2f4deb221a
commit
58127b17d8
5 changed files with 67 additions and 54 deletions
|
@ -146,6 +146,8 @@ async fn main() -> tide::Result<()> {
|
|||
|
||||
// Proxy media through Libreddit
|
||||
app.at("/proxy/*url/").get(proxy::handler);
|
||||
app.at("/vid/:id/:size/").get(proxy::video);
|
||||
app.at("/img/:id/").get(proxy::image);
|
||||
|
||||
// Browse user profile
|
||||
app.at("/u/:name/").get(user::profile);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue