make using CORS configurable by environment var, defaults to false
This commit is contained in:
parent
bc565a4008
commit
9f75bf6a5d
4 changed files with 7 additions and 4 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue