diff options
| author | mo khan <mo@mokhan.ca> | 2025-04-11 17:52:29 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-04-11 17:52:29 -0600 |
| commit | ff15873b766f5be308c9967859bfeb7da7cfa21a (patch) | |
| tree | 5a3799dda610dc6fd7bda3adeab931fb60e986a0 /app/controllers/health/controller.go | |
| parent | 6d525bb541230c707a160ef670449b7588abf43b (diff) | |
refactor: split routes to separate controller files
Diffstat (limited to 'app/controllers/health/controller.go')
| -rw-r--r-- | app/controllers/health/controller.go | 14 |
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) +} |
