@@ -15,7 +15,6 @@ trait DexApplications {
15
15
protected val logger : Logger
16
16
protected val ws : WSClient
17
17
protected val dexAddress : String
18
- protected val dexHost : String
19
18
protected val apiVersion : String
20
19
21
20
implicit protected val applicationFormat : Format [Application ] =
@@ -28,7 +27,6 @@ trait DexApplications {
28
27
def applications (includeUnpublished : Boolean = false )(implicit ec : ExecutionContext ): Future [Seq [Application ]] = {
29
28
val request : WSRequest = ws
30
29
.url(s " $dexAddress/api/ $apiVersion/applications " )
31
- .withVirtualHost(dexHost)
32
30
.withQueryStringParameters(" unpublished" -> includeUnpublished.toString)
33
31
.withHttpHeaders(" Accept" -> " application/json" )
34
32
@@ -59,7 +57,6 @@ trait DexApplications {
59
57
val requestedLanguage = lang.getOrElse(" en" )
60
58
val request : WSRequest = ws
61
59
.url(s " $dexAddress/api/ $apiVersion/applications/ $applicationId" )
62
- .withVirtualHost(dexHost)
63
60
.withQueryStringParameters(" lang" -> requestedLanguage)
64
61
.withHttpHeaders(" Accept" -> " application/json" )
65
62
@@ -92,7 +89,6 @@ trait DexApplications {
92
89
)(implicit ec : ExecutionContext ): Future [Seq [ApplicationHistory ]] = {
93
90
val request : WSRequest = ws
94
91
.url(s " $dexAddress/api/ $apiVersion/applications-history " )
95
- .withVirtualHost(dexHost)
96
92
.withQueryStringParameters(" unpublished" -> includeUnpublished.toString)
97
93
.withHttpHeaders(" Accept" -> " application/json" )
98
94
@@ -124,7 +120,6 @@ trait DexApplications {
124
120
125
121
val request : WSRequest = ws
126
122
.url(s " $dexAddress/api/ $apiVersion/applications " )
127
- .withVirtualHost(dexHost)
128
123
.withHttpHeaders(" Accept" -> " application/json" , " X-Auth-Token" -> access_token)
129
124
130
125
val futureResponse : Future [WSResponse ] = request.post(Json .toJson(application))
@@ -162,7 +157,6 @@ trait DexApplications {
162
157
163
158
val request : WSRequest = ws
164
159
.url(s " $dexAddress/api/ $apiVersion/applications/ ${application.id}" )
165
- .withVirtualHost(dexHost)
166
160
.withHttpHeaders(" Accept" -> " application/json" , " X-Auth-Token" -> access_token)
167
161
168
162
val futureResponse : Future [WSResponse ] = request.put(Json .toJson(application))
@@ -200,7 +194,6 @@ trait DexApplications {
200
194
201
195
val request : WSRequest = ws
202
196
.url(s " $dexAddress/api/ $apiVersion/applications/ ${application.id}/publish " )
203
- .withVirtualHost(dexHost)
204
197
.withHttpHeaders(" Accept" -> " application/json" , " X-Auth-Token" -> access_token)
205
198
206
199
val futureResponse : Future [WSResponse ] = request.get()
@@ -231,7 +224,6 @@ trait DexApplications {
231
224
232
225
val request : WSRequest = ws
233
226
.url(s " $dexAddress/api/ $apiVersion/applications/ ${application.id}/suspend " )
234
- .withVirtualHost(dexHost)
235
227
.withHttpHeaders(" Accept" -> " application/json" , " X-Auth-Token" -> access_token)
236
228
237
229
val futureResponse : Future [WSResponse ] = request.get()
@@ -259,7 +251,6 @@ trait DexApplications {
259
251
260
252
val request : WSRequest = ws
261
253
.url(s " $dexAddress/api/ $apiVersion/applications/ $applicationId" )
262
- .withVirtualHost(dexHost)
263
254
.withHttpHeaders(" Accept" -> " application/json" )
264
255
265
256
val futureResponse : Future [WSResponse ] = request.get()
@@ -297,7 +288,6 @@ trait DexApplications {
297
288
298
289
val request : WSRequest = ws
299
290
.url(s " $dexAddress/api/ $apiVersion/applications/developer " )
300
- .withVirtualHost(dexHost)
301
291
.withHttpHeaders(" Accept" -> " application/json" , " X-Auth-Token" -> access_token)
302
292
303
293
val futureResponse : Future [WSResponse ] = request.put(Json .toJson(developer))
@@ -335,7 +325,6 @@ trait DexApplications {
335
325
336
326
val request : WSRequest = ws
337
327
.url(s " $dexAddress/api/ $apiVersion/applications/ ${application.id}/versions " )
338
- .withVirtualHost(dexHost)
339
328
.withHttpHeaders(" Accept" -> " application/json" , " X-Auth-Token" -> access_token)
340
329
341
330
val futureResponse : Future [WSResponse ] = request.post(Json .toJson(application))
0 commit comments