mirror of
https://github.com/nicotsx/ironmount.git
synced 2025-12-10 12:10:51 +01:00
refactor: switch router to gin
This commit is contained in:
@@ -1,10 +1,13 @@
|
||||
package driver
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"net/http"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func Unmount(w http.ResponseWriter, r *http.Request) {
|
||||
_ = json.NewEncoder(w).Encode(map[string]string{"Err": ""})
|
||||
func Unmount(c *gin.Context) {
|
||||
c.JSON(http.StatusOK, gin.H{
|
||||
"Err": "",
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user