feat: iconを返すように

This commit is contained in:
usbharu 2023-04-01 09:30:04 +09:00
parent 60d1f4e3b4
commit d5b7d8f6cb
Signed by: usbharu
GPG Key ID: 6556747BF94EEBC8
2 changed files with 3 additions and 0 deletions

View File

@ -66,6 +66,9 @@ fun Application.user(userService: UserService, activityPubUserService: ActivityP
"hello $name !!" "hello $name !!"
} }
} }
get("/{name}/icon.png"){
call.respondBytes(Application::class.java.classLoader.getResourceAsStream("icon.png").readAllBytes())
}
} }
authenticate(tokenAuth) { authenticate(tokenAuth) {

BIN
src/main/resources/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB