HM-45. Добавлена возможность использования тестового api с помощью заголовка

This commit is contained in:
vigdorov
2020-07-17 20:59:52 +03:00
parent 6a0ea4a438
commit 8beb84567a
5 changed files with 81 additions and 42 deletions

View File

@ -1,7 +1,9 @@
export const DB_NAME = '/store-service';
export const MONGO_URL = `mongodb://localhost:27017${DB_NAME}`;
export const DB_NAME = 'store-service';
export const DB_TEST_NAME = 'store-service-test';
export const MONGO_URL = 'mongodb://localhost:27017';
export const COOLECTION_STORE = 'store';
export const ALLOW_ORIGIN_ALL: [string, string] = ['Access-Control-Allow-Origin', '*'];
export const ALLOW_CREDENTIALS: [string, string] = ['Access-Control-Allow-Credentials', 'true'];
export const CONTENT_LENGTH: [string, string] = ['Content-Length', '0'];
export const ALLOW_METHOD: [string, string] = ['Access-Control-Allow-Methods', 'GET,HEAD,PUT,PATCH,POST,DELETE'];
export const ALLOW_HEADERS: [string, string] = ['Access-Control-Allow-Headers', 'Version, Authorization, Content-Type'];
export const ALLOW_HEADERS: [string, string] = ['Access-Control-Allow-Headers', 'Version, Authorization, Content-Type, Api-Name'];