Skip to content

Commit

Permalink
Merge pull request #49 from Food-to-Share/fixDelete
Browse files Browse the repository at this point in the history
Delete method Fixed
  • Loading branch information
brunopereira03 committed Jun 13, 2022
2 parents 7ff0041 + 7e8d3fc commit 874d713
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/routes/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
func ConfigRoutes(router *gin.Engine) *gin.Engine {
router.Use(cors.New(cors.Options{
AllowedOrigins: []string{"*"},
AllowedMethods: []string{"GET", "POST", "PUT", "OPTIONS"},
AllowedMethods: []string{"GET", "POST", "PUT", "OPTIONS", "DELETE"},
AllowedHeaders: []string{"Origin", "Content-Type", "Accept", "Authorization"},
AllowCredentials: true,
}))
Expand Down

0 comments on commit 874d713

Please sign in to comment.