diff --git a/api/src/commonMain/kotlin/Resource.kt b/api/src/commonMain/kotlin/Resource.kt index 932dac2..c4f2474 100644 --- a/api/src/commonMain/kotlin/Resource.kt +++ b/api/src/commonMain/kotlin/Resource.kt @@ -330,7 +330,7 @@ val Resource.hierarchy: Sequence * @see Resource.slug The segment of this specific resource. */ val Resource.fullSlug: String - get() = hierarchy.map { it.slug }.joinToString("/") + get() = hierarchy.joinToString("/") { it.slug } /** * Returns all endpoints that are declared on this resource or any of its children. @@ -340,7 +340,3 @@ val Resource.fullSlug: String */ val Resource.endpoints: Sequence get() = directEndpoints + children.flatMap { it.endpoints } - -internal fun Resource.extendPath(extension: String? = null) = - if (extension != null) "$fullSlug/$extension" - else fullSlug