Skip to content

Commit 319fa24

Browse files
authored
release: 1.2.9 (#139)
2 parents c479e6c + dbbe600 commit 319fa24

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/kotlin/org/gitanimals/inbox/app/IdentityApi.kt

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
package org.gitanimals.inbox.app
22

3+
import org.springframework.http.HttpHeaders
4+
import org.springframework.web.bind.annotation.RequestHeader
35
import org.springframework.web.service.annotation.GetExchange
46

57
fun interface IdentityApi {
68

79
@GetExchange("/users")
8-
fun getUserByToken(token: String): UserResponse
10+
fun getUserByToken(@RequestHeader(HttpHeaders.AUTHORIZATION) token: String): UserResponse
911

1012
data class UserResponse(
1113
val id: String,

0 commit comments

Comments
 (0)