summaryrefslogtreecommitdiff
path: root/internal/web/base.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/web/base.go')
-rw-r--r--internal/web/base.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/internal/web/base.go b/internal/web/base.go
index 0eda1185a..5d19a3f70 100644
--- a/internal/web/base.go
+++ b/internal/web/base.go
@@ -30,6 +30,12 @@ import (
"github.com/superseriousbusiness/gotosocial/internal/config"
"github.com/superseriousbusiness/gotosocial/internal/processing"
"github.com/superseriousbusiness/gotosocial/internal/router"
+ "github.com/superseriousbusiness/gotosocial/internal/util"
+)
+
+const (
+ confirmEmailPath = "/" + util.ConfirmEmailPath
+ tokenParam = "token"
)
// Module implements the api.ClientModule interface for web pages.
@@ -100,6 +106,9 @@ func (m *Module) Route(s router.Router) error {
// serve statuses
s.AttachHandler(http.MethodGet, "/:user/statuses/:id", m.threadTemplateHandler)
+ // serve email confirmation page at /confirm_email?token=whatever
+ s.AttachHandler(http.MethodGet, confirmEmailPath, m.confirmEmailGETHandler)
+
// 404 handler
s.AttachNoRouteHandler(m.NotFoundHandler)