~netlandish/gobwebs-ses-feedback

393d551515d9f0768c9145db143fdbe120d61637 — Yader Velasquez 1 year, 11 months ago 06517e1
Add global var for FeedbackURL
1 files changed, 4 insertions(+), 1 deletions(-)

M feedback.go
M feedback.go => feedback.go +4 -1
@@ 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 ...