From 9c7551a7a752c07db11b0fd23bfba8da1ad062e0 Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期五, 21 六月 2024 20:39:12 +0800 Subject: [PATCH] fix 404 --- router/router.go | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/router/router.go b/router/router.go index 9376dd6..81695c8 100644 --- a/router/router.go +++ b/router/router.go @@ -70,10 +70,11 @@ attributeController := new(controllers.AttributeController) attributeAPI := r.Group(urlPrefix + "/attribute") { - attributeAPI.POST("attribute", attributeController.Add) // 娣诲姞灞炴�� - attributeAPI.PUT("updateAttribute/:id", attributeController.Update) // 淇敼灞炴�� - attributeAPI.DELETE("delete/:id", attributeController.Delete) // 鍒犻櫎灞炴�� - attributeAPI.GET("attribute", attributeController.List) // 鑾峰彇灞炴�� + attributeAPI.POST("attribute", attributeController.Add) // 娣诲姞灞炴�� + attributeAPI.PUT("updateAttribute/:id", attributeController.Update) // 淇敼灞炴�� + attributeAPI.DELETE("delete/:id", attributeController.Delete) // 鍒犻櫎灞炴�� + attributeAPI.POST("attribute", attributeController.ListAttribute) // 鑾峰彇灞炴�� + attributeAPI.GET("primary/:id", attributeController.PrimaryAttribute) //鍒犻櫎 //attributeAPI.GET("attribute/:id", attributeController.GetAttributeDetail) // 鑾峰彇灞炴�� } -- Gitblit v1.8.0