22 lines
403 B
Go
22 lines
403 B
Go
package main
|
|
|
|
import (
|
|
"git.umbach.dev/app-idea/rest-api/routers/config"
|
|
"git.umbach.dev/app-idea/rest-api/routers/database"
|
|
"git.umbach.dev/app-idea/rest-api/routers/router"
|
|
|
|
_ "github.com/go-sql-driver/mysql"
|
|
"github.com/gofiber/fiber/v2"
|
|
)
|
|
|
|
func main() {
|
|
app := fiber.New()
|
|
|
|
router.SetupRoutes(app)
|
|
|
|
config.LoadConfig()
|
|
database.InitDatabase()
|
|
|
|
app.Listen(config.GetConfig().Server.Host)
|
|
}
|