v1

package
v0.0.0-...-400441b Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthControllerV1

type AuthControllerV1 struct {
	// contains filtered or unexported fields
}

AuthControllerV1 is a struct for version 1 of AuthController

func New

func New(uc domain.AuthUsecase, server *http.Http) *AuthControllerV1

New creates a new instance of AuthControllerV1

func (*AuthControllerV1) InitRoutes

func (ac *AuthControllerV1) InitRoutes(routeV1 fiber.Router)

InitRoutes registers all routes for version 1

func (*AuthControllerV1) Login

func (ac *AuthControllerV1) Login(ctx *fiber.Ctx) error

Login handles POST /auth/login request

func (*AuthControllerV1) Register

func (ac *AuthControllerV1) Register(ctx *fiber.Ctx) error

Register handles POST /auth/register request

Jump to

Keyboard shortcuts

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