diff --git a/backend/main.go b/backend/main.go index 26b4694..57d6da9 100644 --- a/backend/main.go +++ b/backend/main.go @@ -116,6 +116,16 @@ func main() { // Routes r.Route("/api", func(r chi.Router) { + // Health check + r.Get("/health", func(w http.ResponseWriter, r *http.Request) { + jsonResponse(w, http.StatusOK, APIResponse{Success: true, Data: "OK"}) + }) + + // Hello World + r.Get("/hello", func(w http.ResponseWriter, r *http.Request) { + jsonResponse(w, http.StatusOK, APIResponse{Success: true, Data: "Hello World"}) + }) + r.Get("/tasks", func(w http.ResponseWriter, r *http.Request) { tasks := store.GetAll() jsonResponse(w, http.StatusOK, APIResponse{Success: true, Data: tasks})