Individually proxy videos

This commit is contained in:
spikecodes 2021-02-18 10:04:59 -08:00
parent 2f4deb221a
commit 58127b17d8
No known key found for this signature in database
GPG key ID: 004CECFF9B463BCB
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);