提交 0df8a9ba 编写于 作者: H HFO4

Modify: search shares without login required

上级 79daf928
Subproject commit 1b9186c3c7aab6a619fc7e872ada9f65ca08a34a
Subproject commit 10e5497cfb9f2c180f28a5a492745f521c4b72b1
......@@ -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(),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册