From 285db408be25a0eb8c659e770c28749e9675b18c Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Sat, 11 Jan 2020 15:25:58 -0500 Subject: [PATCH] bot info page --- cmd/mi/mi.go | 1 + cmd/mi/static.go | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 cmd/mi/static.go diff --git a/cmd/mi/mi.go b/cmd/mi/mi.go index 59f6c40..17b2e38 100644 --- a/cmd/mi/mi.go +++ b/cmd/mi/mi.go @@ -26,4 +26,5 @@ func (mi *Mi) RegisterPusher(p Pusher) { func (mi *Mi) RegisterRoutes() { mi.mux.HandleFunc("/blog/refresh", mi.RefreshBlog) + mi.mux.HandleFunc("/.within/botinfo", botInfoPage) } diff --git a/cmd/mi/static.go b/cmd/mi/static.go new file mode 100644 index 0000000..2f3fdfd --- /dev/null +++ b/cmd/mi/static.go @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "net/http" +) + +func botInfoPage(w http.ResponseWriter, r *http.Request) { + fmt.Fprintln(w, `Hello, if you are reading this, you have found this URL in your +access logs. If this program is doing something you don't want them to do, +please contact me at me@christine.website. + +This service is intended to act as a POSSE[1] syndication server for +various services to various other services. + +Every effort is being taken to ensure that the data going through this +server is my own. + +I'm sorry if this causes you any inconvenience. + +[1]: https://indieweb.org/POSSE + +Be well, Creator. +`) +}