diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-01-22 21:42:05 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-01-22 21:42:05 +0900 |
| commit | 8bf9e87117d7f22581d84eb2f440f05a9c34e72b (patch) | |
| tree | eed46ab6b196c5d3ac5f70de291f488c145cc7a9 /src/server/api/api-handler.ts | |
| parent | [Client] Fix bug (diff) | |
| download | sharkey-8bf9e87117d7f22581d84eb2f440f05a9c34e72b.tar.gz sharkey-8bf9e87117d7f22581d84eb2f440f05a9c34e72b.tar.bz2 sharkey-8bf9e87117d7f22581d84eb2f440f05a9c34e72b.zip | |
Fix types
Diffstat (limited to 'src/server/api/api-handler.ts')
| -rw-r--r-- | src/server/api/api-handler.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/api/api-handler.ts b/src/server/api/api-handler.ts index 128c1a98d2..0eef9ab5c7 100644 --- a/src/server/api/api-handler.ts +++ b/src/server/api/api-handler.ts @@ -6,7 +6,7 @@ import call from './call'; import { IUser } from '../../models/user'; import { IApp } from '../../models/app'; -export default async (endpoint: IEndpoint, ctx: Koa.Context) => { +export default async (endpoint: IEndpoint, ctx: Koa.BaseContext) => { const body = ctx.is('multipart/form-data') ? (ctx.req as any).body : ctx.request.body; const reply = (x?: any, y?: any) => { |