summaryrefslogtreecommitdiffstats
path: root/api/handlers/pong.go
blob: ee0d445f0dd933d6e4e30e6c10c39146fc080f22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package handlers

import (
	"net/http"
)

const pong = `<!DOCTYPE html>
<html>
<head>
<title>Pong!</title>
</head>
<body>
<pre>
 _______
< Pong! >
 -------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||
</pre>
</body>
</html>`

func Pong() http.HandlerFunc {
	return func(w http.ResponseWriter, r *http.Request) {
		w.Header().Set("Content-Type", "text/html")
		w.Write([]byte(pong))
	}
}