controller

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddHobby

func AddHobby(c *gin.Context)

AddHobby - PUT /users/hobbies

func CreatePost

func CreatePost(c *gin.Context)

CreatePost - POST /posts

func CreateUser

func CreateUser(c *gin.Context)

CreateUser - POST /users

func CreateUserAuth

func CreateUserAuth(c *gin.Context)

CreateUserAuth - POST /register

func DeletePost

func DeletePost(c *gin.Context)

DeletePost - DELETE /posts/:id

func GetHobbies

func GetHobbies(c *gin.Context)

GetHobbies - GET /hobbies

func GetPost

func GetPost(c *gin.Context)

GetPost - GET /posts/:id

func GetPosts

func GetPosts(c *gin.Context)

GetPosts - GET /posts

func GetUser

func GetUser(c *gin.Context)

GetUser - GET /users/:id

func GetUsers

func GetUsers(c *gin.Context)

GetUsers - GET /users

func Login

func Login(c *gin.Context)

Login ...

func Refresh added in v1.2.5

func Refresh(c *gin.Context)

Refresh ...

func UpdatePost

func UpdatePost(c *gin.Context)

UpdatePost - PUT /posts/:id

func UpdateUser

func UpdateUser(c *gin.Context)

UpdateUser - PUT /users

Types

type LoginPayload

type LoginPayload struct {
	Email    string `json:"Email"`
	Password string `json:"Password"`
}

LoginPayload ...

Jump to

Keyboard shortcuts

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