package
Version:
v0.0.0-...-e662f33
Opens a new window with list of versions in this module.
Published: May 19, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 13
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func AuthRefresh(c *fiber.Ctx) error
func GetAllProducts(c *fiber.Ctx) error
func Login(c *fiber.Ctx) error
HealthCheck godoc
@Summary Login
@Description Login with Email and Password.
@Tags Auth
@Accept */*
@Produce json
@Success 200 {object} schema.APIResponseOK "User and Token"
@Router /auth/login [get]
func Register(c *fiber.Ctx) error
func UpdatePassword(c *fiber.Ctx) error
type ChangePasswordRequest struct {
OldPassword string `json:"old_password"`
NewPassword string `json:"new_password"`
}
type LoginRequest struct {
Email string `json:"email"`
Password string `json:"password"`
}
type RegisterRequest struct {
FirstName string `json:"first_name"`
LastName string `json:"last_name"`
Email string `json:"email"`
Password string `json:"password"`
ConfirmPassword string `json:"confirm_password"`
Location string `json:"location"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.