make using CORS configurable by environment var, defaults to false

This commit is contained in:
dhax 2019-03-09 14:42:08 +01:00
parent bc565a4008
commit c6b8aff2a9
4 changed files with 14 additions and 5 deletions

View file

@ -47,7 +47,7 @@ func init() {
}
func genRoutesDoc() {
api, _ := api.New()
api, _ := api.New(false)
fmt.Print("generating routes markdown file: ")
md := docgen.MarkdownRoutesDoc(api, docgen.MarkdownOpts{
ProjectPath: "github.com/dhax/go-base",