From f7ad0d02f4c43b9d7f8ff174fe0bb43933eb3cb0 Mon Sep 17 00:00:00 2001 From: "DESKTOP-4RNDQIC\\29019" <290198252@qq.com> Date: Tue, 30 Jun 2020 23:28:51 +0800 Subject: [PATCH] no message --- main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index df37e03..4894b0a 100644 --- a/main.go +++ b/main.go @@ -136,9 +136,9 @@ func main() { api.POST("/articles", controller.GetArticles) // 获取所有文章 api.PUT("/article", 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) + api.GET("/article_type", controller.ArticlesType) //获取所有文章分类 + api.PUT("/article_type", controller.AddArticleType) + api.DELETE("/article_type", controller.DeleteArticleType) api.POST("/article_update", controller.UpdateArtilce) //更新文章 api.GET("/articleCount", controller.GetArticleCount) //获取所有文章个数