add custom http handler (dummy for now)
This commit is contained in:
parent
ead6ddc702
commit
3e69086ada
@ -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)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user