Individually proxy images and thumbnails

This commit is contained in:
spikecodes
2021-02-19 12:55:07 -08:00
parent e466be8946
commit c586de66ba
4 changed files with 28 additions and 9 deletions

View File

@ -174,6 +174,7 @@ async fn main() -> tide::Result<()> {
app.at("/proxy/*url/").get(proxy::handler);
app.at("/vid/:id/:size/").get(proxy::video);
app.at("/img/:id/").get(proxy::image);
app.at("/thumb/:point/:id/").get(proxy::thumbnail);
// Browse user profile
app.at("/u/:name/").get(user::profile);