Documentation ¶
Overview ¶
Package api provides all useful API for frontend. A frontend should call required API through HTTP requests.
Index ¶
- func ActivateUser(c *gin.Context)
- func BanUser(c *gin.Context)
- func GetProfile(c *gin.Context)
- func LoginByJWT(c *gin.Context)
- func LoginBySession()
- func LogoutByJWT(c *gin.Context)
- func LogoutBySession()
- func RefreshToken(c *gin.Context)
- func Register(c *gin.Context)
- func RestrictUser(c *gin.Context)
- func UpdateProfile(c *gin.Context)
- func UploadAvatar(c *gin.Context)
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ActivateUser ¶
func GetProfile ¶
func LoginBySession ¶
func LoginBySession()
func LogoutByJWT ¶
func LogoutBySession ¶
func LogoutBySession()
func RefreshToken ¶
func RestrictUser ¶
func UpdateProfile ¶
func UploadAvatar ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.