Skip to content

Commit

Permalink
add dockerignore
Browse files Browse the repository at this point in the history
  • Loading branch information
fifsky committed Mar 18, 2020
1 parent 23ec155 commit 5af9dd2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions api/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,7 @@ func main() {

db := gosql.Use("default")
gen := generator.NewGenerator(db)

c := cors.New(cors.Options{
AllowedOrigins: []string{"http://go.fifsky.com","https://go.fifsky.com"},
})

c := cors.AllowAll()
handler := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
body, err := ioutil.ReadAll(r.Body)
if err != nil {
Expand Down

0 comments on commit 5af9dd2

Please sign in to comment.