Skip to content

Commit 9b87a24

Browse files
committed
feat : Add default build action
1 parent b0db567 commit 9b87a24

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

api/src/main/kotlin/io/wwan13/api/request/ApiMethodSelector.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,30 +7,30 @@ interface ApiMethodSelector {
77
fun get(
88
path: String,
99
vararg pathParameters: Any = arrayOf(),
10-
buildAction: ApiRequestBuilder.() -> Unit
10+
buildAction: ApiRequestBuilder.() -> Unit = { }
1111
): ResultActions
1212

1313
fun post(
1414
path: String,
1515
vararg pathParameters: Any = arrayOf(),
16-
buildAction: ApiRequestBuilder.() -> Unit
16+
buildAction: ApiRequestBuilder.() -> Unit = { }
1717
): ResultActions
1818

1919
fun put(
2020
path: String,
2121
vararg pathParameters: Any = arrayOf(),
22-
buildAction: ApiRequestBuilder.() -> Unit
22+
buildAction: ApiRequestBuilder.() -> Unit = { }
2323
): ResultActions
2424

2525
fun patch(
2626
path: String,
2727
vararg pathParameters: Any = arrayOf(),
28-
buildAction: ApiRequestBuilder.() -> Unit
28+
buildAction: ApiRequestBuilder.() -> Unit = { }
2929
): ResultActions
3030

3131
fun delete(
3232
path: String,
3333
vararg pathParameters: Any = arrayOf(),
34-
buildAction: ApiRequestBuilder.() -> Unit
34+
buildAction: ApiRequestBuilder.() -> Unit = { }
3535
): ResultActions
3636
}

0 commit comments

Comments
 (0)