From 4687355510a71c5e6ddb30b2d4c6b101af792fb5 Mon Sep 17 00:00:00 2001 From: "DESKTOP-4RNDQIC\\29019" <290198252@qq.com> Date: Tue, 16 Jun 2020 00:36:06 +0800 Subject: [PATCH] no message --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 8797f57..9b011ff 100644 --- a/main.go +++ b/main.go @@ -118,7 +118,7 @@ func main() { api.GET("/article/:id",controller.GetArticle) //获取文章 api.POST("/articles",controller.GetArticles) // 获取所有文章 api.PUT("/article",controller.AddArticle) // 添加文章 - api.PUT("/article_search",controller.AddArticle) // 添加文章 + api.PUT("/article_search",controller.SearchArticle) // 添加文章 api.GET("article_type",controller.ArticlesType) //获取所有文章分类 api.PUT("article_type",controller.AddArticleType) api.DELETE("article_type",controller.DeleteArticleType)