File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -2,13 +2,20 @@ let instance;
22
33class ConstantUtil {
44 constructor ( ) {
5+ process . env . SWAGGER_URL = process . env . SWAGGER_URL . replace (
6+ '{{NU_PORT}}' ,
7+ process . env . NU_PORT
8+ ) ;
9+
510 this . MsgStatus400 =
611 'Ocorreu uma falha/erro na sua requisição. Reveja os dados enviados e tente novamente!' ;
712 this . MsgStatus401 = 'Credenciais inválidas ou ausentes' ;
813 this . MsgStatus404 = 'Item não encontrado!' ;
914 this . MsgStatus429 =
1015 'Limite de requisições ultrapassado, por favor, aguarde.' ;
1116 this . MsgStatus500 = 'Erro interno no servidor!' ;
17+ this . MsgInvalidID = 'id não informado ou inválido!' ;
18+ this . MsgStartAPI = `API listening on ${ process . env . NU_PORT } \nSwagger link: ${ process . env . SWAGGER_URL } ` ;
1219 }
1320
1421 static getInstance ( ) {
You can’t perform that action at this time.
0 commit comments