mirror of
https://github.com/containers/podman.git
synced 2025-12-01 18:49:18 +08:00
Refactor handler packages
To help with packaging, the handlers in pkg/api/handlers are now found in pkg/api/handler/compat. Signed-off-by: Jhon Honce <jhonce@redhat.com>
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
package server
|
||||
|
||||
import (
|
||||
"github.com/containers/libpod/pkg/api/handlers"
|
||||
"github.com/containers/libpod/pkg/api/handlers/compat"
|
||||
"github.com/gorilla/mux"
|
||||
)
|
||||
|
||||
func (s *APIServer) registerDistributionHandlers(r *mux.Router) error {
|
||||
r.HandleFunc(VersionedPath("/distribution/{name}/json"), handlers.UnsupportedHandler)
|
||||
r.HandleFunc(VersionedPath("/distribution/{name}/json"), compat.UnsupportedHandler)
|
||||
// Added non version path to URI to support docker non versioned paths
|
||||
r.HandleFunc("/distribution/{name}/json", handlers.UnsupportedHandler)
|
||||
r.HandleFunc("/distribution/{name}/json", compat.UnsupportedHandler)
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user