handlers

package
v0.0.0-...-855d15e Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleAuthLogin

func HandleAuthLogin(c *fiber.Ctx) error

LoginHandler godoc @Summary Login a user @Description Login a user @Tags Authentication @Accept json @Produce json @Param user body dtos.AuthLoginReqData true "User login details" @Success 200 {object} dtos.AuthLoginApiRes @Router /auth/login [post]

func HandleAuthRegister

func HandleAuthRegister(c *fiber.Ctx) error

RegisterHandler godoc @Summary Register a new user @Description Register a new user @Tags Authentication @Accept json @Produce json @Param user body dtos.AuthRegisterReqData true "User registration details" @Success 200 {object} dtos.AuthRegisterApiRes @Router /auth/register [post]

func HandleError

func HandleError(c *fiber.Ctx, err error) error

func HandleUserGetById

func HandleUserGetById(c *fiber.Ctx) error

func HandleUserPasswordUpdate

func HandleUserPasswordUpdate(c *fiber.Ctx) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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