mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-11-04 10:07:34 +00:00
On panic from handler: log warning and stack trace, report InternalServerError to client When using `podman system service` make determining the listening endpoint deterministic. // When determining _*THE*_ listening endpoint -- // 1) User input wins always // 2) systemd socket activation // 3) rootless honors XDG_RUNTIME_DIR // 4) if varlink -- adapter.DefaultVarlinkAddress // 5) lastly adapter.DefaultAPIAddress Fixes #5150 Fixes #5151 Signed-off-by: Jhon Honce <jhonce@redhat.com>
11 lines
264 B
Go
11 lines
264 B
Go
package server
|
|
|
|
import (
|
|
"github.com/containers/libpod/pkg/api/handlers"
|
|
"github.com/gorilla/mux"
|
|
)
|
|
|
|
func (s *APIServer) registerPluginsHandlers(r *mux.Router) error {
|
|
r.Handle(VersionedPath("/plugins"), s.APIHandler(handlers.UnsupportedHandler))
|
|
return nil
|
|
}
|