mirror of
				https://github.com/containers/podman.git
				synced 2025-11-04 08:56:05 +08:00 
			
		
		
		
	Automated for .go files via gomove [1]: `gomove github.com/containers/podman/v3 github.com/containers/podman/v4` Remaining files via vgrep [2]: `vgrep github.com/containers/podman/v3` [1] https://github.com/KSubedi/gomove [2] https://github.com/vrothberg/vgrep Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
		
			
				
	
	
		
			18 lines
		
	
	
		
			441 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			441 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package compat
 | 
						|
 | 
						|
import (
 | 
						|
	"fmt"
 | 
						|
	"net/http"
 | 
						|
 | 
						|
	"github.com/containers/podman/v4/pkg/api/handlers/utils"
 | 
						|
	"github.com/containers/podman/v4/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})
 | 
						|
}
 |