diff --git a/cmd/doggo/api/handlers.go b/cmd/doggo/api/handlers.go index c9488c9..411f7db 100644 --- a/cmd/doggo/api/handlers.go +++ b/cmd/doggo/api/handlers.go @@ -20,7 +20,11 @@ type httpResp struct { } func handleIndexAPI(w http.ResponseWriter, r *http.Request) { - sendResponse(w, http.StatusOK, "Welcome to Doggo API.") + var ( + app = r.Context().Value("app").(app.App) + ) + + sendResponse(w, http.StatusOK, fmt.Sprintf("Welcome to Doggo API. Version: %s", app.Version)) return }