Skip to content

Commit

Permalink
Feat [Fiber Framework] ServerHeader and AppName (#203)
Browse files Browse the repository at this point in the history
add ServerHeader and AppName to FiberServer configuration
  • Loading branch information
H0llyW00dzZ authored Apr 2, 2024
1 parent 5f28396 commit 184bbdd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmd/template/framework/files/server/fiber.go.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ type FiberServer struct {

func New() *FiberServer {
server := &FiberServer{
App: fiber.New(),
App: fiber.New(fiber.Config{
ServerHeader: "{{.ProjectName}}",
AppName: "{{.ProjectName}}",
}),
{{if ne .DBDriver "none"}}
db: database.New(),
{{end}}
Expand Down

0 comments on commit 184bbdd

Please sign in to comment.