提交
This commit is contained in:
@@ -100,6 +100,8 @@ func SetupRouter() *gin.Engine {
|
||||
protected.GET("/auth/profile", authCtrl.GetProfile)
|
||||
protected.GET("/auth/permissions", permCtrl.GetUserPermissions)
|
||||
protected.PUT("/auth/password", authCtrl.ChangePassword)
|
||||
protected.POST("/auth/logout", authCtrl.Logout)
|
||||
protected.GET("/auth/sessions", authCtrl.GetSessions)
|
||||
protected.GET("/user/storage-info", assignCtrl.GetMyStorageInfo)
|
||||
|
||||
// 文件管理
|
||||
@@ -252,6 +254,10 @@ func SetupRouter() *gin.Engine {
|
||||
admin.GET("/backup/logs", backupCtrl.ListLogs)
|
||||
admin.GET("/backup/backups", backupCtrl.ListBackups)
|
||||
admin.POST("/backup/restore/:logId", backupCtrl.Restore)
|
||||
|
||||
// 授权管理
|
||||
admin.GET("/license", adminCtrl.GetLicense)
|
||||
admin.POST("/license/generate", adminCtrl.GenerateLicense)
|
||||
}
|
||||
|
||||
// ============ 分享公开访问 (无需登录) ============
|
||||
|
||||
Reference in New Issue
Block a user