Skip to content

Commit 09c357b

Browse files
author
mkefd
committed
mappersmith
1 parent 9a15aee commit 09c357b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/templates/core/mappersmith/request.hbs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import forge, { Response } from 'mappersmith';
1+
import forge, { Middleware, Response } from 'mappersmith';
22
{{!--import forge, { Client, Response } from 'mappersmith';--}}
33
{{#each services}}
44
{{#if imports}}
@@ -32,10 +32,11 @@ export type {{{clientName}}}Client = {
3232
};
3333

3434
{{!--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[]) =>
3636
forge({
3737
clientId: '{{clientName}}',
3838
host,
39+
middleware,
3940
resources: {
4041
{{#each services}}
4142
{{name}}: {

0 commit comments

Comments
 (0)