From 3f3218a528742bf3765bb32e75d91de6679e6978 Mon Sep 17 00:00:00 2001 From: oz00020 <oz00020@surrey.ac.uk> Date: Thu, 22 Apr 2021 14:44:16 +0100 Subject: [PATCH] Updated URIs in apollo gateway --- apollo-gateway/graphql/adapters/CommentsService.js | 2 +- apollo-gateway/graphql/adapters/PostsService.js | 2 +- apollo-gateway/graphql/adapters/UsersService.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apollo-gateway/graphql/adapters/CommentsService.js b/apollo-gateway/graphql/adapters/CommentsService.js index a89b8fd..70ba9d3 100644 --- a/apollo-gateway/graphql/adapters/CommentsService.js +++ b/apollo-gateway/graphql/adapters/CommentsService.js @@ -1,6 +1,6 @@ import axios from 'axios'; -const COMMENTS_SERVICE_URI = "http://localhost:5003"; +const COMMENTS_SERVICE_URI = "http://comments-service:5003"; export default class PostsService { static async fetchAllPostComments({ postId }) { diff --git a/apollo-gateway/graphql/adapters/PostsService.js b/apollo-gateway/graphql/adapters/PostsService.js index d0df8d6..122dc71 100644 --- a/apollo-gateway/graphql/adapters/PostsService.js +++ b/apollo-gateway/graphql/adapters/PostsService.js @@ -1,6 +1,6 @@ import axios from 'axios'; -const POSTS_SERVICE_URI = "http://localhost:5002"; +const POSTS_SERVICE_URI = "http://posts-service:5002"; export default class PostsService { static async fetchAllPosts() { diff --git a/apollo-gateway/graphql/adapters/UsersService.js b/apollo-gateway/graphql/adapters/UsersService.js index aca9cd3..b9f9905 100644 --- a/apollo-gateway/graphql/adapters/UsersService.js +++ b/apollo-gateway/graphql/adapters/UsersService.js @@ -1,6 +1,6 @@ import axios from 'axios'; -const USERS_SERVICE_URI = "http://localhost:5001/user"; +const USERS_SERVICE_URI = "http://users-service:5001/user"; export default class UsersService { static async signup({ name, email, password }) { -- GitLab