зеркало из https://github.com/microsoft/docker.git
reuse the type
This commit is contained in:
Родитель
a3b1a9f01a
Коммит
d639f61ec1
2
api.go
2
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,
|
||||
|
|
Загрузка…
Ссылка в новой задаче