You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am integrating my API into my ionic view, so I would like to integrate my money transfer endpoint from one leaf port to another but I get a 401 error.
Here is my source code:
Ionic Source Code of Transfer:
This is my Service Allet:
import { Injectable } from '@angular/core';
import { HttpService } from './http.service';
import { StorageService } from './storage.service';
import { Router } from '@angular/router';
import { Observable } from 'rxjs';
@Injectable({
providedIn: 'root'
})
export class WalletService {
constructor(
private httpService: HttpService,
private storageService: StorageService,
private router: Router
) { }
transfert(data: any): Observable<any>{
return this.httpService.post("ewallet/transfer", data);
}
}
I am integrating my API into my ionic view, so I would like to integrate my money transfer endpoint from one leaf port to another but I get a
401
error.Here is my source code:
Ionic Source Code of Transfer:
This is my
Service Allet
:My
httpService
:My
typescript
file:(On the server) My
node.js
code:My Route:
The
Controller
Function:Any help is appreciated, thanks!
The text was updated successfully, but these errors were encountered: