feat: Usersのルーティングを追加

This commit is contained in:
usbharu 2023-05-20 15:29:44 +09:00
parent 934a4317ca
commit cbddc11e67
Signed by: usbharu
GPG Key ID: 6556747BF94EEBC8
2 changed files with 7 additions and 2 deletions

View File

@ -104,7 +104,8 @@ fun Application.parent() {
inject<ActivityPubService>().value, inject<ActivityPubService>().value,
inject<IUserService>().value, inject<IUserService>().value,
inject<ActivityPubUserService>().value, inject<ActivityPubUserService>().value,
inject<IPostService>().value inject<IPostService>().value,
inject<IUserApiService>().value,
) )
} }

View File

@ -4,9 +4,11 @@ import dev.usbharu.hideout.routing.activitypub.inbox
import dev.usbharu.hideout.routing.activitypub.outbox import dev.usbharu.hideout.routing.activitypub.outbox
import dev.usbharu.hideout.routing.activitypub.usersAP import dev.usbharu.hideout.routing.activitypub.usersAP
import dev.usbharu.hideout.routing.api.internal.v1.posts import dev.usbharu.hideout.routing.api.internal.v1.posts
import dev.usbharu.hideout.routing.api.internal.v1.users
import dev.usbharu.hideout.routing.api.mastodon.v1.statuses import dev.usbharu.hideout.routing.api.mastodon.v1.statuses
import dev.usbharu.hideout.routing.wellknown.webfinger import dev.usbharu.hideout.routing.wellknown.webfinger
import dev.usbharu.hideout.service.IPostService import dev.usbharu.hideout.service.IPostService
import dev.usbharu.hideout.service.IUserApiService
import dev.usbharu.hideout.service.activitypub.ActivityPubService import dev.usbharu.hideout.service.activitypub.ActivityPubService
import dev.usbharu.hideout.service.activitypub.ActivityPubUserService import dev.usbharu.hideout.service.activitypub.ActivityPubUserService
import dev.usbharu.hideout.service.impl.IUserService import dev.usbharu.hideout.service.impl.IUserService
@ -20,7 +22,8 @@ fun Application.configureRouting(
activityPubService: ActivityPubService, activityPubService: ActivityPubService,
userService: IUserService, userService: IUserService,
activityPubUserService: ActivityPubUserService, activityPubUserService: ActivityPubUserService,
postService: IPostService postService: IPostService,
userApiService: IUserApiService
) { ) {
install(AutoHeadResponse) install(AutoHeadResponse)
routing { routing {
@ -34,6 +37,7 @@ fun Application.configureRouting(
} }
route("/api/internal/v1") { route("/api/internal/v1") {
posts(postService) posts(postService)
users(userService, userApiService)
} }
} }
} }