refactor: switch router to gin

This commit is contained in:
Nicolas Meienberger
2025-08-10 13:07:05 +02:00
parent e601d91955
commit 2c38a551cc
15 changed files with 277 additions and 131 deletions

View File

@@ -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": "",
})
}