new routes registerd
parent
40187810ad
commit
ae8ec1c3ab
9
main.go
9
main.go
|
@ -2,7 +2,7 @@ package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
db "netina/database"
|
db "netina/database"
|
||||||
|
i "netina/initialize"
|
||||||
"netina/router"
|
"netina/router"
|
||||||
|
|
||||||
"github.com/labstack/echo/v4"
|
"github.com/labstack/echo/v4"
|
||||||
|
@ -10,12 +10,17 @@ import (
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
func main(){
|
func main(){
|
||||||
db.Create_tables()
|
db.Create_tables()
|
||||||
e := echo.New()
|
e := echo.New()
|
||||||
|
i.Init()
|
||||||
|
router.LoginRoutes(e)
|
||||||
router.OwnerRoutes(e)
|
router.OwnerRoutes(e)
|
||||||
router.LicenseRoutes(e)
|
router.LicenseRoutes(e)
|
||||||
router.PlanRoutes(e)
|
router.PlanRoutes(e)
|
||||||
router.StoreRoutes(e)
|
router.StoreRoutes(e)
|
||||||
e.Logger.Fatal(e.Start(":8000"))
|
router.UserRoutes(e)
|
||||||
|
router.RoleRoutes(e)
|
||||||
|
e.Logger.Fatal(e.Start(":8800"))
|
||||||
}
|
}
|
Loading…
Reference in New Issue