mirror of
https://github.com/containers/podman.git
synced 2025-05-25 11:06:18 +08:00

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>
18 lines
390 B
Go
18 lines
390 B
Go
package compat
|
|
|
|
import (
|
|
"fmt"
|
|
"net/http"
|
|
|
|
"github.com/containers/libpod/pkg/api/handlers/utils"
|
|
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.StatusInternalServerError,
|
|
utils.ErrorModel{Message: msg})
|
|
}
|