landing.go 516 B

1234567891011121314151617181920
  1. package main
  2. import "net/http"
  3. var landingTmpl = []byte(`
  4. <!doctype html>
  5. <html>
  6. <head><title>Hey, I'm imgproxy!</title></head>
  7. <body>
  8. <h1>Hey, I'm imgproxy!</h1>
  9. <p style="font-size:1.2em">You can get me here: <a href="https://github.com/imgproxy/imgproxy" target="_blank">https://github.com/imgproxy/imgproxy</a></p>
  10. </body>
  11. </html>
  12. `)
  13. func handleLanding(reqID string, rw http.ResponseWriter, r *http.Request) {
  14. rw.Header().Set("Content-Type", "text/html")
  15. rw.WriteHeader(200)
  16. rw.Write(landingTmpl)
  17. }