feat: Create collection file for routes
This commit is contained in:
15
main.go
Normal file
15
main.go
Normal file
@@ -0,0 +1,15 @@
|
||||
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)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user