Skip to content

Commit

Permalink
modified envireonments
Browse files Browse the repository at this point in the history
  • Loading branch information
valerioprds committed Nov 7, 2023
1 parent bd52900 commit 16ae7da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/services/auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export class AuthService {


return this.http
.get<any>('../assets/dummy/user-login.json')
.get<any>(`${environment.BACKEND_DUMMY_LOGIN}`)
.pipe(
map((authResult: any) => {
this.setLocalStorage(authResult); // Llama a setLocalStorage con el resultado de autenticación
Expand Down Expand Up @@ -93,7 +93,7 @@ export class AuthService {

// Simular la solicitud con datos de un archivo dummy
return this.http
.get<any>('../assets/dummy/response-register.json')
.get<any>(`${environment.BACKEND_DUMMY_REGISTER}`)
.pipe(
map((authResult: any) => {
this.setLocalStorage(authResult); // Llama a setLocalStorage con el resultado de autenticación
Expand Down
2 changes: 2 additions & 0 deletions src/environments/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ export const environment = {
BACKEND_ITA_WIKI_BASE_URL: 'https://dev.api.itadirectory.eurecatacademy.org/api/v1',
BACKEND_ALL_CHALLENGES: '/challenges',
BACKEND_REGISTER: '/auth/register',
BACKEND_DUMMY_REGISTER: '../assets/dummy/user-register.json',
BACKEND_LOGIN:'/auth/login',
BACKEND_DUMMY_LOGIN: '../assets/dummy/user-login.json',
AUTHORIZATION: 'Authorization',
BEARER: 'Bearer ',
BACKEND_TOKEN: '',
Expand Down

0 comments on commit 16ae7da

Please sign in to comment.