Skip to content

Commit cba5b7b

Browse files
committed
fix: make images router available via extension method
1 parent 89305f8 commit cba5b7b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/main/kotlin/com/ctrlhub/core/media/ImagesRouter.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.ctrlhub.core.media
22

3+
import com.ctrlhub.core.Api
34
import com.ctrlhub.core.api.ApiClientException
45
import com.ctrlhub.core.api.ApiException
56
import com.ctrlhub.core.api.UnauthorizedException
@@ -110,4 +111,7 @@ class ImagesRouter(httpClient: HttpClient): Router(httpClient) {
110111
throw ApiException("Request failed: $endpoint", e)
111112
}
112113
}
113-
}
114+
}
115+
116+
val Api.images: ImagesRouter
117+
get() = ImagesRouter(httpClient)

0 commit comments

Comments
 (0)