File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/templates/core/mappersmith Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1
- import forge, { Response } from 'mappersmith';
1
+ import forge, { Middleware, Response } from 'mappersmith';
2
2
{{!--import forge, { Client, Response } from 'mappersmith';--}}
3
3
{{ #each services }}
4
4
{{ #if imports }}
@@ -32,10 +32,11 @@ export type {{{clientName}}}Client = {
32
32
};
33
33
34
34
{{!--export const {{{camelCase clientName}}}MappersmithClientFactory = (host: string): Client<{{{clientName}}}Resource> =>--}}
35
- export const {{{ camelCase clientName }}} MappersmithClientFactory = (host: string) =>
35
+ export const {{{ camelCase clientName }}} MappersmithClientFactory = (host: string, middleware?: Middleware[] ) =>
36
36
forge({
37
37
clientId: '{{ clientName }} ',
38
38
host,
39
+ middleware,
39
40
resources: {
40
41
{{ #each services }}
41
42
{{ name }} : {
You can’t perform that action at this time.
0 commit comments