Skip to content

Commit

Permalink
Default config not needed to be defined
Browse files Browse the repository at this point in the history
  • Loading branch information
Amit0617 authored Mar 17, 2024
1 parent a1dbee5 commit ed1b876
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions swagger/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ import (

Using the default config:
```go
app.Use(swagger.New(cfg))
app.Use(swagger.New())
```

Using a custom config:
Expand Down Expand Up @@ -129,4 +129,4 @@ var ConfigDefault = Config{
Title: "Fiber API documentation",
CacheAge: 3600, // Default to 1 hour
}
```
```

0 comments on commit ed1b876

Please sign in to comment.