Modify: search shares without login required
This commit is contained in:
parent
79daf92896
commit
0df8a9ba65
2 changed files with 3 additions and 3 deletions
2
assets
2
assets
|
@ -1 +1 @@
|
||||||
Subproject commit 1b9186c3c7aab6a619fc7e872ada9f65ca08a34a
|
Subproject commit 10e5497cfb9f2c180f28a5a492745f521c4b72b1
|
|
@ -276,6 +276,8 @@ func InitMasterRouter() *gin.Engine {
|
||||||
middleware.ShareCanPreview(),
|
middleware.ShareCanPreview(),
|
||||||
controllers.ShareThumb,
|
controllers.ShareThumb,
|
||||||
)
|
)
|
||||||
|
// 搜索公共分享
|
||||||
|
v3.Group("share").GET("search", controllers.SearchShare)
|
||||||
}
|
}
|
||||||
|
|
||||||
// 需要登录保护的
|
// 需要登录保护的
|
||||||
|
@ -508,8 +510,6 @@ func InitMasterRouter() *gin.Engine {
|
||||||
share.POST("", controllers.CreateShare)
|
share.POST("", controllers.CreateShare)
|
||||||
// 列出我的分享
|
// 列出我的分享
|
||||||
share.GET("", controllers.ListShare)
|
share.GET("", controllers.ListShare)
|
||||||
// 搜索公共分享
|
|
||||||
share.GET("search", controllers.SearchShare)
|
|
||||||
// 更新分享属性
|
// 更新分享属性
|
||||||
share.PATCH(":id",
|
share.PATCH(":id",
|
||||||
middleware.ShareAvailable(),
|
middleware.ShareAvailable(),
|
||||||
|
|
Loading…
Add table
Reference in a new issue