additional fetaure buildout for footer and footer links
This commit is contained in:
@@ -63,6 +63,7 @@ func main() {
|
||||
statusHandler := handlers.NewStatusHandler(checkpointModel)
|
||||
stripeHandler := handlers.NewStripeHandler(userModel, alertRuleModel, cfg)
|
||||
accountHandler := handlers.NewAccountHandler(userModel, addressModel, cfg)
|
||||
supportHandler := handlers.NewSupportHandler(cfg)
|
||||
|
||||
authenticate := middleware.Authenticate(userModel)
|
||||
requireSub := middleware.RequireSubscription(userModel)
|
||||
@@ -101,6 +102,10 @@ func main() {
|
||||
mux.Handle("GET "+b+"/user/account",
|
||||
authenticate(http.HandlerFunc(accountHandler.GetAccount)))
|
||||
|
||||
// Support (auth required; avoids anonymous spam)
|
||||
mux.Handle("POST "+b+"/support",
|
||||
authenticate(http.HandlerFunc(supportHandler.Submit)))
|
||||
|
||||
// Authenticated + subscribed routes — addresses
|
||||
mux.Handle("POST "+b+"/addresses",
|
||||
authAndSub(http.HandlerFunc(addressHandler.Create)))
|
||||
|
||||
Reference in New Issue
Block a user