增加密码修改、会话退出和登录记录接口
This commit is contained in:
1 parent
225ce96844
commit
e05c930a9d
9 files changed
+319
-2
No files matched your search
@@ -44,6 +44,10 @@ func New(accounts *account.Store, contactStore *contacts.Store, envelopeStore *d
|
||||
mux.HandleFunc("POST /api/v1/auth/logout", a.authorized(a.logout))
|
||||
mux.HandleFunc("GET /api/v1/me", a.authorized(a.me))
|
||||
mux.HandleFunc("GET /api/v1/devices", a.authorized(a.devices))
|
||||
mux.HandleFunc("POST /api/v1/devices/{id}", a.authorized(a.renameDevice))
|
||||
mux.HandleFunc("POST /api/v1/auth/password", a.authorized(a.changePassword))
|
||||
mux.HandleFunc("POST /api/v1/auth/logout-others", a.authorized(a.logoutOthers))
|
||||
mux.HandleFunc("GET /api/v1/auth/history", a.authorized(a.loginHistory))
|
||||
mux.HandleFunc("DELETE /api/v1/devices/{id}", a.authorized(a.revoke))
|
||||
mux.HandleFunc("POST /api/v1/realtime/ticket", a.authorized(a.ticket))
|
||||
mux.HandleFunc("GET /api/v1/realtime", a.realtime)
|
||||
|
||||
Reference in new issue
Block a user