add logout api

This commit is contained in:
root committed 2018-04-18 15:05:37 +08:00
1 parent 6419162471
commit d86e8e47f4
3 files changed
+41

No files matched your search

+1
View File
@@ -40,5 +40,6 @@ func SetDefaultRoutes(r *gin.Engine) {
accountAPI := api.Group("/account")
{
accountAPI.POST("/login", context.PatchContext(account.UserLogin))
accountAPI.POST("/logout", context.PatchContext(account.UserLogout))
}
}