feat: add profile route and ui
This commit is contained in:
@@ -11,6 +11,7 @@ import (
|
||||
"github.com/omnex/control-plane/api/internal/demos"
|
||||
"github.com/omnex/control-plane/api/internal/httpx"
|
||||
"github.com/omnex/control-plane/api/internal/leads"
|
||||
"github.com/omnex/control-plane/api/internal/profile"
|
||||
"github.com/omnex/control-plane/api/internal/sav"
|
||||
"github.com/omnex/control-plane/api/internal/session"
|
||||
"github.com/omnex/control-plane/api/internal/sub"
|
||||
@@ -26,6 +27,7 @@ type Deps struct {
|
||||
DemosH *demos.Handler
|
||||
SubH *sub.Handler
|
||||
ContactH *sav.Handler
|
||||
ProfileH *profile.Handler
|
||||
}
|
||||
|
||||
// New construit l'engine Gin avec toute la chaîne de sécurité.
|
||||
@@ -61,6 +63,7 @@ func New(d Deps) *gin.Engine {
|
||||
client.GET("/leads", d.LeadsH.List)
|
||||
client.PATCH("/leads/:id/status", d.LeadsH.SetStatus)
|
||||
client.POST("/subscription", d.SubH.AddCode)
|
||||
client.POST("/profile/username", d.ProfileH.UpdateUsernameById)
|
||||
}
|
||||
|
||||
// Espace admin : provisioning des démos (admin uniquement).
|
||||
@@ -77,7 +80,6 @@ func New(d Deps) *gin.Engine {
|
||||
admin.DELETE("/demos/:id", d.DemosH.Delete)
|
||||
admin.POST("/demos/:id/extend", d.DemosH.Extend)
|
||||
admin.POST("/demos/details", d.DemosH.ListDetails)
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user