add custom http handler (dummy for now)

This commit is contained in:
mr0x50 2025-02-09 23:13:59 +01:00
parent ead6ddc702
commit 3e69086ada

View File

@ -56,6 +56,13 @@ func main() {
policies.PreventTimestampsInTheFuture(time.Minute*30),
)
mux := relay.Router()
// set up other http handlers
mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
w.Header().Set("content-type", "text/html")
fmt.Fprintf(w, `<b>Welcome</b> to scrapestr!`)
})
fmt.Println("running on :3334")
http.ListenAndServe(":3334", relay)
}