Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoginRequest ¶
type LoginResponse ¶
type UserController ¶
type UserController struct {
forge.Controller
}
func (*UserController) HandleGetUser ¶
func (c *UserController) HandleGetUser(ctx *forge.Context) error
HandleGetUser handles getting a user by ID @route GET /users/:id @desc Get a user by ID @param id path int true "User ID" @response 200 User
func (*UserController) HandlePostLogin ¶
func (c *UserController) HandlePostLogin(ctx *forge.Context) error
HandlePostLogin handles user login @route POST /login @desc Authenticate a user @body LoginRequest @response 200 LoginResponse
Click to show internal directories.
Click to hide internal directories.