From d875847cbbcb2da3687ff75459b7056075e2e36b Mon Sep 17 00:00:00 2001
From: Mathilde Hertaas <maimh@stud.ntnu.no>
Date: Thu, 6 Mar 2025 20:45:09 +0100
Subject: [PATCH] updatet readme and homepage accordantly to previus error

---
 README.md              | 2 +-
 handelers/constants.go | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md
index af0c708..89953c6 100644
--- a/README.md
+++ b/README.md
@@ -49,7 +49,7 @@ http://localhost:8080/countryinfo/v1/population/{country_code}{?startyear-endYea
 Viser status for de eksterne API-ene, versjon og applikasjonens oppetid.
 
  ```sh
-http://localhost:8080/status
+http://localhost:8080/countryinfo/v1/status
 ```
         
 
diff --git a/handelers/constants.go b/handelers/constants.go
index eab88b5..5e73a1c 100644
--- a/handelers/constants.go
+++ b/handelers/constants.go
@@ -24,7 +24,7 @@ const INFO_HEADER = "Get country information"
 const STATUS_HEADER = "Get status info"
 const POPULATION_HEADER = "Get population info"
 const STATUS_DESCRIPTION = "Retrieve information about the API status."
-const STATUS_URL = "http://localhost:8080/status/"
+const STATUS_URL = "http://localhost:8080/countryinfo/v1/status/"
 const POPULATION_DESCRIPTION = "It requires the ISO 3166-2 country code and a optional limit of the years in the repsonse"
 const POPULATION_URL = "http://localhost:8080/countryinfo/v1/population/{ISO_3166-2_country_code}{?startYear-endYear}"
 const POPULATION_URL_EXAMPLE = "http://localhost:8080/countryinfo/v1/population/NO?2010-2015"
-- 
GitLab