mirror of
https://github.com/containers/podman.git
synced 2025-07-15 03:02:52 +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) registerPluginsHandlers(r *mux.Router) error {
|
||||
r.Handle(VersionedPath("/plugins"), s.APIHandler(handlers.UnsupportedHandler))
|
||||
r.Handle(VersionedPath("/plugins"), s.APIHandler(compat.UnsupportedHandler))
|
||||
// Added non version path to URI to support docker non versioned paths
|
||||
r.Handle("/plugins", s.APIHandler(handlers.UnsupportedHandler))
|
||||
r.Handle("/plugins", s.APIHandler(compat.UnsupportedHandler))
|
||||
return nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user