endpoints registered
parent
4277b4cca2
commit
3e5b6d54e4
12
main.go
12
main.go
|
@ -2,10 +2,20 @@ package main
|
|||
|
||||
import (
|
||||
db "netina/database"
|
||||
|
||||
"netina/router"
|
||||
|
||||
"github.com/labstack/echo/v4"
|
||||
)
|
||||
|
||||
|
||||
|
||||
func main(){
|
||||
db.Create_tables()
|
||||
}
|
||||
e := echo.New()
|
||||
router.OwnerRoutes(e)
|
||||
router.LicenseRoutes(e)
|
||||
router.PlanRoutes(e)
|
||||
router.StoreRoutes(e)
|
||||
e.Logger.Fatal(e.Start(":8000"))
|
||||
}
|
Loading…
Reference in New Issue