Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CORS ¶
func CORS() gin.HandlerFunc
CORS
Sets up CORS headers for the API, if the request method is options, the request will be aborted with a status of http.StatusOK.
func EmptyBody ¶
func EmptyBody() gin.HandlerFunc
EmptyBody
Determines if the content type is JSON and the method type is a post or a put, if the body is invalid JSON or empty, abort JSON will be called.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.