diff options
Diffstat (limited to 'src/Render')
| -rw-r--r-- | src/Render/Render.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Render/Render.go b/src/Render/Render.go index 130789c..45d81c0 100644 --- a/src/Render/Render.go +++ b/src/Render/Render.go @@ -19,9 +19,14 @@ type IndexTemplateContents struct { func RegisterEndpoints() { // http.Handle("static/", http.FileServer(http.FS(os.DirFS(settings.Current.StaticLocation)))) http.HandleFunc("/articles/{name}", test) + http.HandleFunc("/.well-known/discord", discord_verification) http.HandleFunc("/", mux) } +func discord_verification(w http.ResponseWriter, r *http.Request) { + http.ServeFile(w, r, fmt.Sprintf("%s/discord.txt", settings.Current.StaticLocation)) +} + func mux(w http.ResponseWriter, r *http.Request) { // slog.Info("Request", slog.String("URL", r.URL.String())) if r.URL.String() == "/favicon.ico" { |
