Browse Source

reuse the type

benoitc 12 năm trước cách đây
mục cha
commit
d639f61ec1
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      api.go

+ 1 - 1
api.go

@@ -914,7 +914,7 @@ func makeHttpHandler(srv *Server, logging bool, localMethod string, localRoute s
 func createRouter(srv *Server, logging bool) (*mux.Router, error) {
 	r := mux.NewRouter()
 
-	m := map[string]map[string]func(*Server, float64, http.ResponseWriter, *http.Request, map[string]string) error{
+	m := map[string]map[string]HttpApiFunc{
 		"GET": {
 			"/auth":                           getAuth,
 			"/version":                        getVersion,