From d122d841e8b7dd7f8942b6f2fa84220f95f2cae4 Mon Sep 17 00:00:00 2001 From: Leonardo Bishop Date: Wed, 10 Sep 2025 00:46:42 +0100 Subject: Add optional CSS to html --- api/handlers/pong.go | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 api/handlers/pong.go (limited to 'api/handlers/pong.go') diff --git a/api/handlers/pong.go b/api/handlers/pong.go new file mode 100644 index 0000000..ee0d445 --- /dev/null +++ b/api/handlers/pong.go @@ -0,0 +1,31 @@ +package handlers + +import ( + "net/http" +) + +const pong = ` + + +Pong! + + +
+ _______
+< Pong! >
+ -------
+        \   ^__^
+         \  (oo)\_______
+            (__)\       )\/\
+                ||----w |
+                ||     ||
+
+ +` + +func Pong() http.HandlerFunc { + return func(w http.ResponseWriter, r *http.Request) { + w.Header().Set("Content-Type", "text/html") + w.Write([]byte(pong)) + } +} -- cgit v1.2.3-70-g09d2