From 393d551515d9f0768c9145db143fdbe120d61637 Mon Sep 17 00:00:00 2001 From: Yader Velasquez Date: Wed, 7 Dec 2022 15:37:24 -0600 Subject: [PATCH] Add global var for FeedbackURL --- feedback.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/feedback.go b/feedback.go index f06faa4..041d41a 100644 --- a/feedback.go +++ b/feedback.go @@ -16,6 +16,9 @@ import ( "hg.code.netlandish.com/~netlandish/gobwebs/server" ) +// FeedbackURL is the url to call the feedback handler +var FeedbackURL string = "/ses-feedback" + // Actions ... type Actions interface { Bounce(data map[string]any) error @@ -39,7 +42,7 @@ type Service struct { // RegisterRoutes ... func (s *Service) RegisterRoutes() { - s.eg.POST("/ses-feedback", s.Feedback).Name = s.RouteName("feedback") + s.eg.POST(FeedbackURL, s.Feedback).Name = s.RouteName("feedback") } // RouteName ... -- 2.45.2