Skip to content

Commit

Permalink
cap-gateway - change:constants places
Browse files Browse the repository at this point in the history
  • Loading branch information
andreibesleaga committed Aug 10, 2024
1 parent f9289b6 commit 405ab11
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 21 deletions.
2 changes: 1 addition & 1 deletion cap-gateway/gateway/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
20 changes: 0 additions & 20 deletions cap-gateway/responder-microservices/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});

0 comments on commit 405ab11

Please sign in to comment.