Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyRoutes ¶
func ApplyRoutes(r *gin.RouterGroup, jwtAuth jwt.Auth)
ApplyRoutes All routes from authentification
func Login ¶
Login An account @Summary Connect user to app @Description Using JWT auth (look headers for token) @Tags auth @Accept json @Produce json @Param body body user.requestLogin true "Account to login" @Success 200 {string} string "Empty" @Failure 500 {object} pkg.HTTPError "Error" @Router /login [post]
func Register ¶
Register route for creating account @Summary Create new account @Description Using JWT auth @Tags auth @Accept json @Produce json @Param body body user.requestRegister true "Add account" @Success 200 {object} pkg.HTTPStatus "Status" @Failure 500 {object} pkg.HTTPError "Error" @Router /register [post]
Types ¶
This section is empty.