fix: classloaderの呼び出しを変更2

This commit is contained in:
usbharu 2023-04-01 10:44:57 +09:00
parent 46c075bf6d
commit 0062829ffe
2 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ fun Application.user(userService: UserService, activityPubUserService: ActivityP
} }
} }
get("/{name}/icon.png"){ get("/{name}/icon.png"){
call.respondBytes(javaClass.classLoader.getResourceAsStream("icon.png").readAllBytes(),ContentType.Image.PNG) call.respondBytes(String.javaClass.classLoader.getResourceAsStream("icon.png").readAllBytes(),ContentType.Image.PNG)
} }
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 63 KiB

After

Width:  |  Height:  |  Size: 329 KiB