add revoke all sessions in device & session page

This commit is contained in:
MaysWind
2020-11-15 20:58:51 +08:00
parent fa76067881
commit 73fecf9c63
7 changed files with 115 additions and 7 deletions
+1
View File
@@ -143,6 +143,7 @@ func startWebServer(c *cli.Context) error {
// Tokens
apiV1Route.GET("/tokens/list.json", bindApi(api.Tokens.TokenListHandler))
apiV1Route.POST("/tokens/revoke.json", bindApi(api.Tokens.TokenRevokeHandler))
apiV1Route.POST("/tokens/revokeAll.json", bindApi(api.Tokens.TokenRevokeAllHandler))
apiV1Route.POST("/tokens/refresh.json", bindApi(api.Tokens.TokenRefreshHandler))
// Users