mirror of
https://github.com/nicotsx/ironmount.git
synced 2025-12-10 12:10:51 +01:00
feat: api
This commit is contained in:
4
main.go
4
main.go
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user