mirror of
https://github.com/imgproxy/imgproxy.git
synced 2024-11-24 08:12:38 +02:00
21 lines
516 B
Go
21 lines
516 B
Go
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) {
|
|
rw.Header().Set("Content-Tyle", "text/html")
|
|
rw.WriteHeader(200)
|
|
rw.Write(landingTmpl)
|
|
}
|