diff --git a/src/main/kotlin/dev/usbharu/hideout/routing/UserRouting.kt b/src/main/kotlin/dev/usbharu/hideout/routing/UserRouting.kt index 32752d44..661ebc4e 100644 --- a/src/main/kotlin/dev/usbharu/hideout/routing/UserRouting.kt +++ b/src/main/kotlin/dev/usbharu/hideout/routing/UserRouting.kt @@ -66,6 +66,9 @@ fun Application.user(userService: UserService, activityPubUserService: ActivityP "hello $name !!" } } + get("/{name}/icon.png"){ + call.respondBytes(Application::class.java.classLoader.getResourceAsStream("icon.png").readAllBytes()) + } } authenticate(tokenAuth) { diff --git a/src/main/resources/icon.png b/src/main/resources/icon.png new file mode 100644 index 00000000..f563780a Binary files /dev/null and b/src/main/resources/icon.png differ