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
Click to show internal directories.
Click to hide internal directories.