Skip to content

Commit

Permalink
fix cors
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyhalight committed May 8, 2024
1 parent bbb37cc commit 5adb723
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Binary file modified bun.lockb
Binary file not shown.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
},
"dependencies": {
"@bogeychan/elysia-logger": "^0.0.21",
"@elysiajs/cors": "^1.0.2",
"@elysiajs/swagger": "^1.0.4",
"elysia": "^1.0.15",
"pino-pretty": "^11.0.0"
Expand Down
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ import setupElysia, { log } from "./setup";
import { InternalServerError, UnableAccessYandexAPI } from "./errors";
import detect from "./controllers/detect";
import getLangs from "./controllers/getLangs";
import { cors } from "@elysiajs/cors";

const app = new Elysia()
.use(cors())
.use(
swagger({
path: "/docs",
Expand Down

0 comments on commit 5adb723

Please sign in to comment.