Skip to content

Commit

Permalink
feat: remove context
Browse files Browse the repository at this point in the history
  • Loading branch information
devhaozi committed Aug 12, 2023
1 parent 6013d3c commit fe3f980
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@ import (
"fiber": map[string]any{
// prefork mode, see https://docs.gofiber.io/api/fiber/#config
"prefork": false,
"context": func() (http.Context, error) {
return fiberfacades.Context(), nil
},
"route": func() (route.Engine, error) {
return fiberfacades.Route(), nil
},
Expand Down
11 changes: 0 additions & 11 deletions facades/fiber.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,9 @@ import (
"log"

"github.com/goravel/fiber"
"github.com/goravel/framework/contracts/http"
"github.com/goravel/framework/contracts/route"
)

func Context() http.Context {
instance, err := fiber.App.Make(fiber.HttpBinding)
if err != nil {
log.Fatalln(err)
return nil
}

return instance.(*fiber.Context)
}

func Route() route.Engine {
instance, err := fiber.App.Make(fiber.RouteBinding)
if err != nil {
Expand Down

0 comments on commit fe3f980

Please sign in to comment.