Skip to content

Commit 5c15592

Browse files
committed
cos apis
Signed-off-by: Ashima-Ashima1 <[email protected]>
1 parent d0b7cd5 commit 5c15592

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

cos-csi-mounter/server/server.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ func main() {
7272
router := gin.Default()
7373

7474
router.POST("/api/cos/mount", handleCosMount())
75-
// router.POST("/api/cos/unmount", handleCosUnmount())
75+
router.POST("/api/cos/unmount", handleCosUnmount())
7676

7777
// Serve HTTP requests over Unix socket
7878
err = http.Serve(listener, router)
@@ -120,7 +120,7 @@ func handleCosMount() gin.HandlerFunc {
120120

121121
// Currently by calling FuseUnmount method from NodeServer is able to unmount the volume
122122
// If required to have specific unmount methods based on mounters then following call can be modified and used
123-
/*
123+
124124
func handleCosUnmount() gin.HandlerFunc {
125125
return func(c *gin.Context) {
126126
var request struct {
@@ -149,4 +149,3 @@ func handleCosUnmount() gin.HandlerFunc {
149149
c.JSON(http.StatusOK, "Success!!")
150150
}
151151
}
152-
*/

0 commit comments

Comments
 (0)