summaryrefslogtreecommitdiff
path: root/app/controllers/health
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-04-11 17:52:29 -0600
committermo khan <mo@mokhan.ca>2025-04-11 17:52:29 -0600
commitff15873b766f5be308c9967859bfeb7da7cfa21a (patch)
tree5a3799dda610dc6fd7bda3adeab931fb60e986a0 /app/controllers/health
parent6d525bb541230c707a160ef670449b7588abf43b (diff)
refactor: split routes to separate controller files
Diffstat (limited to 'app/controllers/health')
-rw-r--r--app/controllers/health/controller.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/app/controllers/health/controller.go b/app/controllers/health/controller.go
new file mode 100644
index 0000000..e241885
--- /dev/null
+++ b/app/controllers/health/controller.go
@@ -0,0 +1,14 @@
+package health
+
+import "net/http"
+
+type Controller struct {
+}
+
+func New() *Controller {
+ return &Controller{}
+}
+
+func (c *Controller) Index(w http.ResponseWriter, r *http.Request) {
+ w.WriteHeader(http.StatusOK)
+}