Skip to content

Commit ac7a452

Browse files
committed
separte location.twig from service.js.twig
1 parent 1ba18e8 commit ac7a452

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

templates/node/base/requests/api.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ return await this.client.call('{{ method.method | caseLower }}', path, {
55
{% for key, header in method.headers %}
66
'{{ key }}': '{{ header }}',
77
{% endfor %}
8-
}, payload{% if method.type == 'location' %}, 'arraybuffer'{% endif %});
8+
}, payload{# location check #});
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{% if method.type == 'location' %}, 'arraybuffer'{% endif %}

templates/node/lib/services/service.js.twig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ class {{ service.name | caseUcfirst }} extends Service {
7575
{% if 'multipart/form-data' in method.consumes %}
7676
{# file section #}
7777
{# api section #}
78+
{% endif %}
7879
}
7980
}
8081

0 commit comments

Comments
 (0)