Skip to content

Commit

Permalink
refactor: variable rename in exchange OpenAPICommons.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
cpatsonakis committed Sep 20, 2024
1 parent 671a1b8 commit fa40b30
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import kotlinx.serialization.Serializable
import kotlinx.serialization.json.JsonObject

fun Application.exchange() = walletRoute {
route(OpenAPICommons.rootPath, OpenAPICommons.route()) {
route(OpenAPICommons.exchangeRootPath, OpenAPICommons.exchangeRoute()) {
post("useOfferRequest", {
summary = "Claim credential(s) from an issuer"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ import kotlinx.uuid.generateUUID
fun Application.exchangeExternalSignatures() = walletRoute {
val logger = KotlinLogging.logger { }
route(
OpenAPICommons.rootPath,
OpenAPICommons.route(),
OpenAPICommons.exchangeRootPath,
OpenAPICommons.exchangeRoute(),
) {
post("external_signatures/presentation/prepare", {
summary = "Preparation (first) step for an OID4VP flow with externally provided signatures."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import io.ktor.http.*
import kotlinx.serialization.json.JsonObject

object OpenAPICommons {
const val rootPath = "exchange"
const val exchangeRootPath = "exchange"

fun route(): OpenApiRoute.() -> Unit = {
fun exchangeRoute(): OpenApiRoute.() -> Unit = {
tags = listOf("Credential exchange")
}

Expand Down

0 comments on commit fa40b30

Please sign in to comment.