aboutsummaryrefslogtreecommitdiff
path: root/api/routes.go
diff options
context:
space:
mode:
authorjackyzha0 <[email protected]>2020-05-09 12:22:31 -0700
committerjackyzha0 <[email protected]>2020-05-09 12:22:31 -0700
commit043e347703b780781bb2a16946299ff493215c76 (patch)
treecc2f152de2b22c7bf7542b12d6ce3035412abdf2 /api/routes.go
parentinitial files (diff)
downloadctrl-v-043e347703b780781bb2a16946299ff493215c76.tar.xz
ctrl-v-043e347703b780781bb2a16946299ff493215c76.zip
healthcheck + basic api
Diffstat (limited to 'api/routes.go')
-rw-r--r--api/routes.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/api/routes.go b/api/routes.go
new file mode 100644
index 0000000..e3aac5b
--- /dev/null
+++ b/api/routes.go
@@ -0,0 +1,10 @@
+package api
+
+import (
+ "fmt"
+ "net/http"
+)
+
+func healthCheckFunc(w http.ResponseWriter, r *http.Request) {
+ fmt.Fprintf(w, "Hello there chief")
+}