aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/xyz/driver/core/rest/RestService.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/scala/xyz/driver/core/rest/RestService.scala')
-rw-r--r--src/main/scala/xyz/driver/core/rest/RestService.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/scala/xyz/driver/core/rest/RestService.scala b/src/main/scala/xyz/driver/core/rest/RestService.scala
index 3cb66f9..2839c7e 100644
--- a/src/main/scala/xyz/driver/core/rest/RestService.scala
+++ b/src/main/scala/xyz/driver/core/rest/RestService.scala
@@ -55,8 +55,8 @@ trait RestService extends Service {
protected def patchJson(baseUri: Uri, path: String, json: JsValue) =
HttpRequest(HttpMethods.PATCH, endpointUri(baseUri, path), entity = jsonEntity(json))
- protected def delete(baseUri: Uri, path: String) =
- HttpRequest(HttpMethods.DELETE, endpointUri(baseUri, path))
+ protected def delete(baseUri: Uri, path: String, query: Seq[(String, String)] = Seq.empty) =
+ HttpRequest(HttpMethods.DELETE, endpointUri(baseUri, path, query))
protected def endpointUri(baseUri: Uri, path: String): Uri =
baseUri.withPath(Uri.Path(path))