Individually proxy previews

This commit is contained in:
spikecodes 2021-02-19 20:50:55 -08:00
parent bacb22f7f9
commit 65e4ceff7b
No known key found for this signature in database
GPG key ID: 004CECFF9B463BCB
3 changed files with 26 additions and 8 deletions

View file

@ -176,6 +176,8 @@ async fn main() -> tide::Result<()> {
app.at("/img/:id/").get(proxy::image);
app.at("/thumb/:point/:id/").get(proxy::thumbnail);
app.at("/emoji/:id/:name/").get(proxy::emoji);
app.at("/preview/:location/:id/:query/").get(proxy::preview);
app.at("/style/*path/").get(proxy::style);
// Browse user profile
app.at("/u/:name/").get(user::profile);