Improve settings auto-discovery, make it provisionable

This commit is contained in:
Denis Arh
2019-07-14 11:24:43 +02:00
parent dd5820253f
commit ab4b74620f
10 changed files with 481 additions and 234 deletions
+5
View File
@@ -29,6 +29,11 @@ type (
}
)
var (
Monolith = false
BaseURL = "/"
)
func NewServer(log *zap.Logger) *Server {
return &Server{
endpoints: make([]func(r chi.Router), 0),