Hide echo banner on startup

This commit is contained in:
Khanh Ngo 2020-05-22 10:22:02 +07:00
parent a0c3d09577
commit f82922c23d
No known key found for this signature in database
GPG key ID: D5FAA6A16150E49E

View file

@ -78,6 +78,7 @@ func New(tmplBox *rice.Box) *echo.Echo {
AllowHeaders: []string{echo.HeaderOrigin, echo.HeaderContentType, echo.HeaderAccept, echo.HeaderAuthorization},
AllowMethods: []string{echo.GET, echo.HEAD, echo.PUT, echo.PATCH, echo.POST, echo.DELETE},
}))
e.HideBanner = true
e.Validator = NewValidator()
e.Renderer = &TemplateRegistry{
templates: templates,