Skip to content

Commit

Permalink
feat: allow cors
Browse files Browse the repository at this point in the history
  • Loading branch information
Qu1etboy committed Mar 24, 2024
1 parent 2bf45f2 commit 5ec5d89
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"ku-transcript/internal/app/controllers"

"github.com/gofiber/fiber/v2"
"github.com/gofiber/fiber/v2/middleware/cors"
"github.com/gofiber/swagger"

_ "ku-transcript/docs"
Expand All @@ -13,6 +14,7 @@ func main() {

app := fiber.New()

app.Use(cors.New())
app.Get("/swagger/*", swagger.HandlerDefault)

controllers.Init(app)
Expand Down

0 comments on commit 5ec5d89

Please # to comment.