Set content type of api requests to application/json
This commit is contained in:
parent
c20e999b70
commit
4bb6950e34
|
|
@ -25,6 +25,10 @@ func Create(db *database.GormDatabase) (*gin.Engine, func()) {
|
||||||
|
|
||||||
g.GET("/")
|
g.GET("/")
|
||||||
|
|
||||||
|
g.Use(func(ctx *gin.Context) {
|
||||||
|
ctx.Header("Content-Type", "application/json")
|
||||||
|
})
|
||||||
|
|
||||||
g.Group("/").Use(authentication.RequireApplicationToken()).POST("/message", messageHandler.CreateMessage)
|
g.Group("/").Use(authentication.RequireApplicationToken()).POST("/message", messageHandler.CreateMessage)
|
||||||
|
|
||||||
clientAuth := g.Group("")
|
clientAuth := g.Group("")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue