Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HealthCheck ¶
func HealthCheck(c *fiber.Ctx) error
func LoginHandler ¶
func LoginHandler(c *fiber.Ctx) error
LoginHandler godoc
@Summary Login @Description Login via email and password @Tags auth @Accept json @Produce json @Param body body models.LoginRequest true "Login" @Success 200 {object} models.LoginResponse @Failure 400 {object} models.GenericResponse @Router /auth/v1/auth/login [post]
func RefreshTokenHandler ¶
func RefreshTokenHandler(c *fiber.Ctx) error
RefreshTokenHandler godoc
@Summary Refresh Token @Description Refresh Token @Tags auth @Param body body models.RefreshTokenRequest true "RefreshToken" @Accept json @Produce json @Success 200 {object} models.LoginResponse @Failure 401 {object} models.GenericResponse @Security Bearer @Router /auth/v1/refresh-token [post]
func RegisterHandler ¶
func RegisterHandler(c *fiber.Ctx) error
RegisterHandler godoc
@Summary Register @Description Register via email and password @Tags auth @Accept json @Produce json @Param body body models.RegisterRequest true "Register" @Success 200 {object} models.GenericResponse @Failure 400 {object} models.GenericResponse @Router /auth/v1/register [post]
func SettingsHandler ¶
func SettingsHandler(c *fiber.Ctx) error
func VerifyHandler ¶
func VerifyHandler(c *fiber.Ctx) error
VerifyHandler godoc
@Summary Verify @Description Verify some type of token @Tags auth @Accept json @Produce json @Param body body models.VerifyRequest true "Verify" @Success 200 {object} models.GenericResponse @Failure 400 {object} models.GenericResponse @Router /auth/v1/verify [post]
func VerifyTokenHandler ¶
func VerifyTokenHandler(c *fiber.Ctx) error
VerifyTokenHandler godoc
@Summary Verify Token @Description Verify Token @Tags auth @Accept json @Produce json @Success 200 {object} models.GenericResponse @Failure 401 {object} models.GenericResponse @Security Bearer @Router /auth/v1/verify-token [get]
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.