mirror of
https://github.com/nicotsx/ironmount.git
synced 2025-12-10 12:10:51 +01:00
refactor: move driver handlers to own file
This commit is contained in:
17
internal/driver/handlers.go
Normal file
17
internal/driver/handlers.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package driver
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
func SetupHandlers(mux *http.ServeMux) {
|
||||
mux.HandleFunc("/Plugin.Activate", Activate)
|
||||
mux.HandleFunc("/VolumeDriver.Create", Create)
|
||||
mux.HandleFunc("/VolumeDriver.Remove", Remove)
|
||||
mux.HandleFunc("/VolumeDriver.Mount", Mount)
|
||||
mux.HandleFunc("/VolumeDriver.Unmount", Unmount)
|
||||
mux.HandleFunc("/VolumeDriver.Path", Path)
|
||||
mux.HandleFunc("/VolumeDriver.Get", Get)
|
||||
mux.HandleFunc("/VolumeDriver.List", List)
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user