blob: 9db0c3febe7fe9bf94206f245a4d2e664a94111a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
package compat
import (
"fmt"
"net/http"
"github.com/containers/libpod/v2/pkg/domain/entities"
"github.com/containers/libpod/v2/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,
entities.ErrorModel{Message: msg})
}
|