File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ func main() {
72
72
router := gin .Default ()
73
73
74
74
router .POST ("/api/cos/mount" , handleCosMount ())
75
- // router.POST("/api/cos/unmount", handleCosUnmount())
75
+ router .POST ("/api/cos/unmount" , handleCosUnmount ())
76
76
77
77
// Serve HTTP requests over Unix socket
78
78
err = http .Serve (listener , router )
@@ -120,7 +120,7 @@ func handleCosMount() gin.HandlerFunc {
120
120
121
121
// Currently by calling FuseUnmount method from NodeServer is able to unmount the volume
122
122
// If required to have specific unmount methods based on mounters then following call can be modified and used
123
- /*
123
+
124
124
func handleCosUnmount () gin.HandlerFunc {
125
125
return func (c * gin.Context ) {
126
126
var request struct {
@@ -149,4 +149,3 @@ func handleCosUnmount() gin.HandlerFunc {
149
149
c .JSON (http .StatusOK , "Success!!" )
150
150
}
151
151
}
152
- */
You can’t perform that action at this time.
0 commit comments