2019-08-20 15:26:17 +02:00
|
|
|
package main
|
|
|
|
|
|
|
|
import "net/http"
|
|
|
|
|
|
|
|
var landingTmpl = []byte(`
|
|
|
|
<!doctype html>
|
|
|
|
<html>
|
|
|
|
<head><title>Hey, I'm imgproxy!</title></head>
|
|
|
|
<body>
|
|
|
|
<h1>Hey, I'm imgproxy!</h1>
|
|
|
|
<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>
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
`)
|
|
|
|
|
|
|
|
func handleLanding(reqID string, rw http.ResponseWriter, r *http.Request) {
|
2021-09-06 11:47:10 +02:00
|
|
|
rw.Header().Set("Content-Type", "text/html")
|
2019-08-20 15:26:17 +02:00
|
|
|
rw.WriteHeader(200)
|
|
|
|
rw.Write(landingTmpl)
|
|
|
|
}
|