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