feat: add profile route and ui
This commit is contained in:
@@ -16,6 +16,7 @@ import (
|
||||
"github.com/omnex/control-plane/api/internal/demos"
|
||||
"github.com/omnex/control-plane/api/internal/k8s"
|
||||
"github.com/omnex/control-plane/api/internal/leads"
|
||||
"github.com/omnex/control-plane/api/internal/profile"
|
||||
"github.com/omnex/control-plane/api/internal/router"
|
||||
"github.com/omnex/control-plane/api/internal/sav"
|
||||
"github.com/omnex/control-plane/api/internal/session"
|
||||
@@ -69,6 +70,7 @@ func main() {
|
||||
var demoPool demos.Pool
|
||||
var codeStore sub.Store
|
||||
var contactStore sav.Store
|
||||
var profileStore profile.Store
|
||||
if cfg.DatabaseURL != "" {
|
||||
gdb, err := db.Open(cfg.DatabaseURL)
|
||||
if err != nil {
|
||||
@@ -88,6 +90,7 @@ func main() {
|
||||
demoStore = demos.NewGormStore(gdb)
|
||||
demoPool = demos.NewGormPool(gdb)
|
||||
contactStore = sav.NewGormStore(gdb)
|
||||
profileStore = profile.NewGormStore(gdb)
|
||||
log.Printf("persistance: PostgreSQL (GORM)")
|
||||
} else {
|
||||
userStore = seedMemUsers()
|
||||
@@ -126,6 +129,7 @@ func main() {
|
||||
DemosH: demos.NewHandler(demoSvc, helmProv),
|
||||
SubH: sub.NewHandler(codeStore),
|
||||
ContactH: sav.NewHandler(contactStore),
|
||||
ProfileH: profile.NewHandler(profileStore),
|
||||
}
|
||||
|
||||
r := router.New(deps)
|
||||
|
||||
Reference in New Issue
Block a user