Skip to content

Commit

Permalink
fix: update @koa/multer import keyword in koa.hbs
Browse files Browse the repository at this point in the history
  • Loading branch information
wazho committed Jul 17, 2023
1 parent da3b322 commit faea6fe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/cli/src/routeGeneration/templates/koa.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ import type { IocContainer, IocContainerFactory } from '@tsoa/runtime';
import type { Middleware } from 'koa';
import type * as KoaRouter from '@koa/router';
{{#if useFileUploads}}
{{#if esm}}
import multer from '@koa/multer';
{{else}}
const multer = require('@koa/multer');
{{/if}}
const upload = multer({{{json multerOpts}}});
{{/if}}

Expand Down

0 comments on commit faea6fe

Please sign in to comment.