Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitRoutes ¶
func InitRoutes()
func UsersCreate ¶
func UsersCreate(ctx *gin.Context)
func UsersLogin ¶
func UsersLogin(ctx *gin.Context)
Types ¶
type Response ¶
type Response struct { }
func (Response) Error ¶
func (r Response) Error(ctx *gin.Context, err interface{})
Error returns 200 OK response with json field "errors" with error descrioption. This function should be used to display validation or other expected errors. errors may be string or array of hashes.
func (Response) Forbidden ¶
func (r Response) Forbidden(ctx *gin.Context)
Forbidden responses with 401 code, means user does not valid credentials to access handler.
Click to show internal directories.
Click to hide internal directories.