-
Add package using
go get github.com/bimalabs/middlewares
-
Add Helmet middleware to
dics/container.go
{
Name: "bima:middleware:helmet",
Scope: bima.Application,
Build: func() (middlewares.Middleware, error) {
return helmet.New(), nil
},
},
- Add to
configs/middlewares.yaml
middlewares:
- helmet