houyaf 3 年之前
父节点
当前提交
f1ab69dac4
共有 1 个文件被更改,包括 7 次插入7 次删除
  1. 7 7
      pkg/api/controller/api_controller.go

+ 7 - 7
pkg/api/controller/api_controller.go

@@ -12,13 +12,13 @@ type ApiController struct {
 }
 
 func (c *ApiController) BeforeActivation(b mvc.BeforeActivation) {
-	b.Handle("GET", "/", "GetList")
-	b.Handle("GET", "/page", "GetPage")
-	b.Handle("GET", "/{apiId:int64}", "GetById")
-	b.Handle("POST", "/add", "Create")
-	b.Handle("PUT", "/update", "Update")
-	b.Handle("PUT", "/updateStatus/{apiId:int64}/{status:int64}", "UpdateStatus")
-	b.Handle("DELETE", "/{apiId:int64}", "DeleteByID")
+	b.Handle("GET", 		"/", 											"GetList"	)
+	b.Handle("GET", 		"/page", 										"GetPage"	)
+	b.Handle("GET", 		"/{apiId:int64}", 								"GetById"	)
+	b.Handle("POST", 		"/add", 										"Create"	)
+	b.Handle("PUT", 		"/update", 										"Update"	)
+	b.Handle("PUT", 		"/updateStatus/{apiId:int64}/{status:int64}", 	"UpdateStatus")
+	b.Handle("DELETE", 		"/{apiId:int64}", 								"DeleteByID")
 }
 
 func (c *ApiController) GetList() *JsonResult {