Modify: search shares without login required

This commit is contained in:
HFO4 2020-05-01 09:33:59 +08:00
parent 79daf92896
commit 0df8a9ba65
2 changed files with 3 additions and 3 deletions

2
assets

@ -1 +1 @@
Subproject commit 1b9186c3c7aab6a619fc7e872ada9f65ca08a34a
Subproject commit 10e5497cfb9f2c180f28a5a492745f521c4b72b1

View file

@ -276,6 +276,8 @@ func InitMasterRouter() *gin.Engine {
middleware.ShareCanPreview(),
controllers.ShareThumb,
)
// 搜索公共分享
v3.Group("share").GET("search", controllers.SearchShare)
}
// 需要登录保护的
@ -508,8 +510,6 @@ func InitMasterRouter() *gin.Engine {
share.POST("", controllers.CreateShare)
// 列出我的分享
share.GET("", controllers.ListShare)
// 搜索公共分享
share.GET("search", controllers.SearchShare)
// 更新分享属性
share.PATCH(":id",
middleware.ShareAvailable(),