mirror of
https://github.com/halejohn/Cloudreve.git
synced 2026-01-26 09:34:57 +08:00
feat(mobile): only allow request from mobile client to copy session
This commit is contained in:
@@ -234,7 +234,12 @@ func InitMasterRouter() *gin.Engine {
|
||||
file.GET("archive/:sessionID/archive.zip", controllers.DownloadArchive)
|
||||
}
|
||||
|
||||
sign.GET("user/session/copy/:id", controllers.UserPerformCopySession)
|
||||
// Copy user session
|
||||
sign.GET(
|
||||
"user/session/copy/:id",
|
||||
middleware.MobileRequestOnly(),
|
||||
controllers.UserPerformCopySession,
|
||||
)
|
||||
}
|
||||
|
||||
// 从机的 RPC 通信
|
||||
|
||||
Reference in New Issue
Block a user