diff --git a/proxy/main.go b/proxy/main.go index b21ea2c..021de85 100644 --- a/proxy/main.go +++ b/proxy/main.go @@ -6,7 +6,7 @@ func main() { nginxServer := newNginxServer() appStatusURL := "/app/status" - createuserURL := "/create/user" + createUserURL := "/create/user" httpCode, body := nginxServer.handleRequest(appStatusURL, "GET") fmt.Printf("\nUrl: %s\nHttpCode: %d\nBody: %s\n", appStatusURL, httpCode, body) @@ -17,9 +17,9 @@ func main() { httpCode, body = nginxServer.handleRequest(appStatusURL, "GET") fmt.Printf("\nUrl: %s\nHttpCode: %d\nBody: %s\n", appStatusURL, httpCode, body) - httpCode, body = nginxServer.handleRequest(createuserURL, "POST") - fmt.Printf("\nUrl: %s\nHttpCode: %d\nBody: %s\n", appStatusURL, httpCode, body) + httpCode, body = nginxServer.handleRequest(createUserURL, "POST") + fmt.Printf("\nUrl: %s\nHttpCode: %d\nBody: %s\n", createUserURL, httpCode, body) - httpCode, body = nginxServer.handleRequest(createuserURL, "GET") - fmt.Printf("\nUrl: %s\nHttpCode: %d\nBody: %s\n", appStatusURL, httpCode, body) + httpCode, body = nginxServer.handleRequest(createUserURL, "GET") + fmt.Printf("\nUrl: %s\nHttpCode: %d\nBody: %s\n", createUserURL, httpCode, body) } diff --git a/proxy/output.txt b/proxy/output.txt index 2ad4f18..e2ce1a1 100644 --- a/proxy/output.txt +++ b/proxy/output.txt @@ -10,10 +10,10 @@ Url: /app/status HttpCode: 403 Body: Not Allowed -Url: /app/status +Url: /create/user HttpCode: 201 Body: User Created -Url: /app/status +Url: /create/user HttpCode: 404 Body: Not Ok \ No newline at end of file