Добавлен контроллер пользователей, описана схема, подключен сервис для работы с БД, описана первая ручка для получения списка пользователей
This commit is contained in:
11
src/consts.ts
Normal file
11
src/consts.ts
Normal file
@ -0,0 +1,11 @@
|
||||
export const USERS_CONTROLLER = 'users';
|
||||
export const AUTH_CONTROLLER = 'auth';
|
||||
|
||||
export const MONGO_URL = 'mongodb://localhost:27017';
|
||||
export const DB_NAME = 'auth-service';
|
||||
|
||||
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, Api-Name'];
|
||||
Reference in New Issue
Block a user