瀏覽代碼

reuse the type

benoitc 12 年之前
父節點
當前提交
d639f61ec1
共有 1 個文件被更改,包括 1 次插入1 次删除
  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) {
 func createRouter(srv *Server, logging bool) (*mux.Router, error) {
 	r := mux.NewRouter()
 	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": {
 		"GET": {
 			"/auth":                           getAuth,
 			"/auth":                           getAuth,
 			"/version":                        getVersion,
 			"/version":                        getVersion,