From 405ab11083d7de6f32d21e582d4fee0c71bb4037 Mon Sep 17 00:00:00 2001 From: Andrei Besleaga Date: Sat, 10 Aug 2024 21:27:23 +0300 Subject: [PATCH] cap-gateway - change:constants places --- cap-gateway/gateway/constants.js | 2 +- .../responder-microservices/constants.js | 20 ------------------- 2 files changed, 1 insertion(+), 21 deletions(-) diff --git a/cap-gateway/gateway/constants.js b/cap-gateway/gateway/constants.js index ecae3aa..a3f021e 100644 --- a/cap-gateway/gateway/constants.js +++ b/cap-gateway/gateway/constants.js @@ -5,7 +5,7 @@ export const ENV = 'development'; export const APP_URL = 'http://localhost'; export const APP_PORT = 5000; -export const ACCESS_LOGS_DIR = '../LOGS'; +export const ACCESS_LOGS_DIR = './LOGS'; // API Gateway Endpoints - app URLs routed in controllers to coresponding microservices export const Endpoints = Object.freeze({ diff --git a/cap-gateway/responder-microservices/constants.js b/cap-gateway/responder-microservices/constants.js index 24cc7d2..4214802 100644 --- a/cap-gateway/responder-microservices/constants.js +++ b/cap-gateway/responder-microservices/constants.js @@ -2,23 +2,3 @@ export const SERVICE_TIMEOUT = 3000; export const ENV = 'development'; export const TRANSLATOR_KEY = 'translationEngineAPIKey'; - -// API Gateway Endpoints - app URLs routed in controllers to coresponding microservices -export const Endpoints = Object.freeze({ - admin: { - pubsub: '/app/admin/services/pubsub', // start admin pubsub messager to be received by all microservices subscribed - }, - cap: { - translate: '/app/cap/translate', // sends a message; - }, -}); - -// HTTP CODES contants used in the main app server -export const HTTP_CODE = Object.freeze({ - OK: 200, - BadRequest: 400, - Unauthorized: 401, - ServerError: 500, - NotImplemented: 501, - ServiceUnavailable: 503, -});