Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion services/admin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ Standalone microservice providing administrative APIs for the Take Flight platfo
go run ./cmd
```

The service exposes a `GET /health` endpoint for health checks.
The service exposes a `GET /health` endpoint returning `{ "status": "ok" }` for health checks.
3 changes: 2 additions & 1 deletion services/admin/cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@ package main

import (
"log"
"net/http"

"github.com/labstack/echo/v4"
)

func main() {
e := echo.New()
e.GET("/health", func(c echo.Context) error {
return c.String(200, "OK")
return c.JSON(http.StatusOK, map[string]string{"status": "ok"})
})

if err := e.Start(":8080"); err != nil {
Expand Down
2 changes: 1 addition & 1 deletion services/auth/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ Standalone microservice providing authentication APIs for the Take Flight platfo
go run ./cmd
```

The service exposes a `GET /health` endpoint for health checks.
The service exposes a `GET /health` endpoint returning `{ "status": "ok" }` for health checks.
3 changes: 2 additions & 1 deletion services/auth/cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@ package main

import (
"log"
"net/http"

"github.com/labstack/echo/v4"
)

func main() {
e := echo.New()
e.GET("/health", func(c echo.Context) error {
return c.String(200, "OK")
return c.JSON(http.StatusOK, map[string]string{"status": "ok"})
})

if err := e.Start(":8080"); err != nil {
Expand Down
3 changes: 0 additions & 3 deletions services/auth/go.mod
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
module github.com/Siya360/take-flight/services/auth

mkgc9h-codex/review-codebase-for-agentic-ai-migration
go 1.22
main


require github.com/labstack/echo/v4 v4.11.4

Expand Down
2 changes: 1 addition & 1 deletion services/bookings/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ Standalone microservice providing booking APIs for the Take Flight platform.
go run ./cmd
```

The service exposes a `GET /health` endpoint for health checks.
The service exposes a `GET /health` endpoint returning `{ "status": "ok" }` for health checks.
20 changes: 10 additions & 10 deletions services/bookings/cmd/main.go
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
package main

import (
"log"
"log"
"net/http"

"github.com/labstack/echo/v4"
"github.com/labstack/echo/v4"
)

func main() {
e := echo.New()
e.GET("/health", func(c echo.Context) error {
return c.String(200, "OK")
})
e := echo.New()
e.GET("/health", func(c echo.Context) error {
return c.JSON(http.StatusOK, map[string]string{"status": "ok"})
})

if err := e.Start(":8080"); err != nil {
log.Fatalf("server error: %v", err)
}
if err := e.Start(":8080"); err != nil {
log.Fatalf("server error: %v", err)
}
}

2 changes: 1 addition & 1 deletion services/flights/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ Standalone microservice providing flight schedule and inventory APIs for the Tak
go run ./cmd
```

The service exposes a `GET /health` endpoint for health checks.
The service exposes a `GET /health` endpoint returning `{ "status": "ok" }` for health checks.
3 changes: 2 additions & 1 deletion services/flights/cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@ package main

import (
"log"
"net/http"

"github.com/labstack/echo/v4"
)

func main() {
e := echo.New()
e.GET("/health", func(c echo.Context) error {
return c.String(200, "OK")
return c.JSON(http.StatusOK, map[string]string{"status": "ok"})
})

if err := e.Start(":8080"); err != nil {
Expand Down
2 changes: 1 addition & 1 deletion services/users/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ Standalone microservice providing user management APIs for the Take Flight platf
go run ./cmd
```

The service exposes a `GET /health` endpoint for health checks.
The service exposes a `GET /health` endpoint returning `{ "status": "ok" }` for health checks.
3 changes: 2 additions & 1 deletion services/users/cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@ package main

import (
"log"
"net/http"

"github.com/labstack/echo/v4"
)

func main() {
e := echo.New()
e.GET("/health", func(c echo.Context) error {
return c.String(200, "OK")
return c.JSON(http.StatusOK, map[string]string{"status": "ok"})
})

if err := e.Start(":8080"); err != nil {
Expand Down
Loading