handler

package
v0.0.0-...-e662f33 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 19, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthRefresh

func AuthRefresh(c *fiber.Ctx) error

func GetAllProducts

func GetAllProducts(c *fiber.Ctx) error

func Login

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

func Register(c *fiber.Ctx) error

func UpdatePassword

func UpdatePassword(c *fiber.Ctx) error

Types

type ChangePasswordRequest

type ChangePasswordRequest struct {
	OldPassword string `json:"old_password"`
	NewPassword string `json:"new_password"`
}

type LoginRequest

type LoginRequest struct {
	Email    string `json:"email"`
	Password string `json:"password"`
}

type RegisterRequest

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL