Hub-Api/main.go

26 lines
379 B
Go
Raw Normal View History

2024-05-24 14:06:56 +03:30
package main
2024-05-27 23:06:25 +03:30
import (
db "netina/database"
2024-06-17 19:06:27 +03:30
i "netina/initialize"
2024-06-07 15:13:33 +03:30
"netina/router"
"github.com/labstack/echo/v4"
2024-05-27 23:06:25 +03:30
)
2024-06-17 19:06:27 +03:30
2024-05-27 23:06:25 +03:30
func main(){
db.Create_tables()
2024-06-07 15:13:33 +03:30
e := echo.New()
2024-06-17 19:06:27 +03:30
i.Init()
router.LoginRoutes(e)
2024-06-07 15:13:33 +03:30
router.OwnerRoutes(e)
router.LicenseRoutes(e)
router.PlanRoutes(e)
router.StoreRoutes(e)
2024-06-17 19:06:27 +03:30
router.UserRoutes(e)
router.RoleRoutes(e)
e.Logger.Fatal(e.Start(":8800"))
2024-06-07 15:13:33 +03:30
}