mirror of https://github.com/usbharu/Hideout.git
14 lines
493 B
Kotlin
14 lines
493 B
Kotlin
package dev.usbharu.hideout.controller
|
|
|
|
import dev.usbharu.hideout.domain.model.ap.Person
|
|
import org.springframework.http.ResponseEntity
|
|
import org.springframework.web.bind.annotation.GetMapping
|
|
import org.springframework.web.bind.annotation.PathVariable
|
|
import org.springframework.web.bind.annotation.RestController
|
|
|
|
@RestController
|
|
interface UserAPController {
|
|
@GetMapping("/users/{username}")
|
|
suspend fun userAp(@PathVariable("username") username: String): ResponseEntity<Person>
|
|
}
|