Individually proxy videos

This commit is contained in:
spikecodes
2021-02-18 10:04:59 -08:00
parent 2f4deb221a
commit 58127b17d8
5 changed files with 67 additions and 54 deletions

View File

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