feat: api

This commit is contained in:
Nicolas Meienberger
2025-08-10 16:51:16 +02:00
parent 2c38a551cc
commit fd91751673
8 changed files with 177 additions and 43 deletions

View File

@@ -1,6 +1,7 @@
package main
import (
"ironmount/internal/api"
"ironmount/internal/constants"
"ironmount/internal/core"
"ironmount/internal/db"
@@ -19,8 +20,6 @@ type Volume struct {
Path string
}
var volumes = map[string]Volume{}
func main() {
db.Init()
@@ -48,6 +47,7 @@ func main() {
router.Use(gin.Recovery())
driver.SetupHandlers(router)
api.SetupHandlers(router)
unixListener, err := net.Listen("unix", socketPath)
if err != nil {