bot info page

This commit is contained in:
Cadey Ratio 2020-01-11 15:25:58 -05:00
parent 73c12ca905
commit 285db408be
2 changed files with 26 additions and 0 deletions

View File

@ -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)
}

25
cmd/mi/static.go Normal file
View File

@ -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.
`)
}