mirror of
https://github.com/containers/podman.git
synced 2025-08-06 19:44:14 +08:00

Moving from Go module v4 to v5 prepares us for public releases. Move done using gomove [1] as with the v3 and v4 moves. [1] https://github.com/KSubedi/gomove Signed-off-by: Matt Heon <mheon@redhat.com>
18 lines
441 B
Go
18 lines
441 B
Go
package compat
|
|
|
|
import (
|
|
"fmt"
|
|
"net/http"
|
|
|
|
"github.com/containers/podman/v5/pkg/api/handlers/utils"
|
|
"github.com/containers/podman/v5/pkg/errorhandling"
|
|
log "github.com/sirupsen/logrus"
|
|
)
|
|
|
|
func UnsupportedHandler(w http.ResponseWriter, r *http.Request) {
|
|
msg := fmt.Sprintf("Path %s is not supported", r.URL.Path)
|
|
log.Infof("Request Failed: %s", msg)
|
|
|
|
utils.WriteJSON(w, http.StatusNotFound, errorhandling.ErrorModel{Message: msg})
|
|
}
|