Individually proxy images and thumbnails

This commit is contained in:
spikecodes 2021-02-19 12:55:07 -08:00
parent e466be8946
commit c586de66ba
No known key found for this signature in database
GPG key ID: 004CECFF9B463BCB
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);