diff options
| author | Acid Chicken (硫酸鶏) <root@acid-chicken.com> | 2019-02-01 19:46:18 +0900 |
|---|---|---|
| committer | Aya Morisawa <AyaMorisawa4869@gmail.com> | 2019-02-01 19:46:18 +0900 |
| commit | 2dc4696b0a9970ca06b8f7b03b1e2d7eab0a35fb (patch) | |
| tree | 4697a495f980b13a7b94bd41aadf00c58adbf002 | |
| parent | Module 'parse5' as import syntax (#4015) (diff) | |
| download | sharkey-2dc4696b0a9970ca06b8f7b03b1e2d7eab0a35fb.tar.gz sharkey-2dc4696b0a9970ca06b8f7b03b1e2d7eab0a35fb.tar.bz2 sharkey-2dc4696b0a9970ca06b8f7b03b1e2d7eab0a35fb.zip | |
Module '@koa/cors' as import syntax (#4060)
| -rw-r--r-- | package.json | 1 | ||||
| -rw-r--r-- | src/server/api/index.ts | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/package.json b/package.json index 7f23d033a2..98bcb51fa5 100644 --- a/package.json +++ b/package.json @@ -50,6 +50,7 @@ "@types/koa": "2.0.48", "@types/koa-bodyparser": "5.0.2", "@types/koa-compress": "2.0.8", + "@types/koa-cors": "0.0.0", "@types/koa-favicon": "2.0.19", "@types/koa-logger": "3.1.1", "@types/koa-mount": "3.0.1", diff --git a/src/server/api/index.ts b/src/server/api/index.ts index 6a10820c82..711e0791e7 100644 --- a/src/server/api/index.ts +++ b/src/server/api/index.ts @@ -6,7 +6,7 @@ import * as Koa from 'koa'; import * as Router from 'koa-router'; import * as multer from 'koa-multer'; import * as bodyParser from 'koa-bodyparser'; -const cors = require('@koa/cors'); +import * as cors from '@koa/cors'; import endpoints from './endpoints'; import handler from './api-handler'; |