mirror of
https://github.com/nicotsx/ironmount.git
synced 2025-12-10 12:10:51 +01:00
feat: missing endpoints
This commit is contained in:
8
main.go
8
main.go
@@ -41,6 +41,14 @@ func main() {
|
||||
http.HandleFunc("/VolumeDriver.Mount", driver.Mount)
|
||||
http.HandleFunc("/VolumeDriver.Unmount", driver.Unmount)
|
||||
http.HandleFunc("/VolumeDriver.Path", driver.Path)
|
||||
http.HandleFunc("/VolumeDriver.Get", driver.Get)
|
||||
http.HandleFunc("/VolumeDriver.List", driver.List)
|
||||
|
||||
// Catch all other paths to return an error
|
||||
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
|
||||
log.Printf("Received unknown request: %s", r.URL.Path)
|
||||
http.Error(w, "Not Found", http.StatusNotFound)
|
||||
})
|
||||
|
||||
listener, err := net.Listen("unix", socketPath)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user