16 lines
306 B
Go
16 lines
306 B
Go
package main
|
|
|
|
import (
|
|
"github.com/tenante/api/database"
|
|
"github.com/tenante/api/server"
|
|
)
|
|
|
|
func main() {
|
|
db := database.NewConnection("localhost", 5432, "postgres", "postgres", "tenante_admin_PRD", "disable")
|
|
api := server.NewApiServer(8081, db)
|
|
err := api.Start()
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
}
|