From e27cda57796bf9beeefe1f6cf38227d8f83f247d Mon Sep 17 00:00:00 2001 From: maddalax Date: Thu, 31 Oct 2024 13:40:43 -0500 Subject: [PATCH] add discord route --- htmgo-site/pages/discord.go | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 htmgo-site/pages/discord.go diff --git a/htmgo-site/pages/discord.go b/htmgo-site/pages/discord.go new file mode 100644 index 0000000..0fc1985 --- /dev/null +++ b/htmgo-site/pages/discord.go @@ -0,0 +1,8 @@ +package pages + +import "github.com/maddalax/htmgo/framework/h" + +func DiscordPage(ctx *h.RequestContext) *h.Page { + ctx.Redirect("https://discord.com/invite/nwQY4h6DtJ", 302) + return h.EmptyPage() +}