diff --git a/assets.go b/assets.go index 1b8ca125..dcb5c324 100644 --- a/assets.go +++ b/assets.go @@ -31,11 +31,6 @@ func init() { return ctx.TryWebP("images/brand/"+file, ".png") }) - // SVG icons - app.Get("/icons/:file", func(ctx *aero.Context) string { - return ctx.File("images/icons/svg/" + ctx.Get("file")) - }) - // Cover image app.Get("/images/cover/:file", func(ctx *aero.Context) string { file := strings.TrimSuffix(ctx.Get("file"), ".webp") diff --git a/tests.go b/tests.go index b52fb895..9da41aa3 100644 --- a/tests.go +++ b/tests.go @@ -10,14 +10,6 @@ func init() { "/+Akyoto/threads", }) - app.Test("/user/:nick/avatar", []string{ - "/+Akyoto/avatar", - }) - - app.Test("/user/:nick/avatar/small", []string{ - "/+Akyoto/avatar/small", - }) - // Pages app.Test("/anime/:id", []string{ "/anime/1", @@ -73,8 +65,16 @@ func init() { }) // Images - app.Test("/icons/:file", []string{ - "/icons/inbox", + app.Test("/images/avatars/large/:file", []string{ + "/images/avatars/large/4J6qpK1ve.webp", + }) + + app.Test("/images/avatars/small/:file", []string{ + "/images/avatars/small/4J6qpK1ve.webp", + }) + + app.Test("/images/brand/:file", []string{ + "/images/brand/64.webp", }) app.Test("/images/login/:file", []string{