File tree 1 file changed +2
-9
lines changed
templates/web/src/services
1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -70,14 +70,13 @@ export class {{ service.name | caseUcfirst }} {
70
70
{%~ endfor %}
71
71
}
72
72
73
- {%~ if method .type == ' location' or method .type == ' webAuth' %}
74
- {%~ if method .auth | length > 0 %}
75
73
{%~ for node in method .auth %}
76
74
{%~ for key ,header in node | keys %}
77
75
payload['{{header | caseLower}}'] = this.client.config.{{header | caseLower}};
78
76
{%~ endfor %}
79
77
{%~ endfor %}
80
- {%~ endif %}
78
+
79
+ {%~ if method .type == ' location' or method .type == ' webAuth' %}
81
80
for (const [key, value] of Object.entries(Service.flatten(payload))) {
82
81
uri.searchParams.append(key, value);
83
82
}
@@ -91,12 +90,6 @@ export class {{ service.name | caseUcfirst }} {
91
90
return uri.toString();
92
91
}
93
92
{%~ elseif method .type == ' location' %}
94
- {%~ for node in method .auth %}
95
- {%~ for key , header in node | keys %}
96
- payload['{{ header | caseLower }}'] = this.client.config.{{ header | caseLower }};
97
- {%~ endfor %}
98
- {%~ endfor %}
99
-
100
93
return uri.toString();
101
94
{%~ elseif ' multipart/form-data' in method .consumes %}
102
95
return await this.client.chunkedUpload(
You can’t perform that action at this time.
0 commit comments