We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8996813 commit 8b81c72Copy full SHA for 8b81c72
src/main/kotlin/com/ctrlhub/core/datacapture/FormSchemasRouter.kt
@@ -1,5 +1,6 @@
1
package com.ctrlhub.core.datacapture
2
3
+import com.ctrlhub.core.Api
4
import com.ctrlhub.core.api.response.PaginatedList
5
import com.ctrlhub.core.datacapture.response.FormSchema
6
import com.ctrlhub.core.extractPaginationFromMeta
@@ -67,4 +68,7 @@ class FormSchemasRouter(httpClient: HttpClient) : Router(httpClient) {
67
68
}
69
70
private fun JsonElement.jsonObjectOrNull(): JsonObject? = this as? JsonObject
-}
71
+}
72
+
73
+val Api.formSchemas: FormSchemasRouter
74
+ get() = FormSchemasRouter(httpClient)
0 commit comments