prettier
This commit is contained in:
parent
6ba4937538
commit
55cd5fefed
4 changed files with 14 additions and 17 deletions
|
@ -2,14 +2,13 @@ import { inject, Injectable } from '@angular/core';
|
|||
import { HttpClient } from '@angular/common/http';
|
||||
import { Observable } from 'rxjs';
|
||||
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class DepositService {
|
||||
private http: HttpClient = inject(HttpClient);
|
||||
|
||||
handleDeposit(amount: number): Observable<{ sessionId: string }> {
|
||||
return this.http.post<{sessionId: string}>('/backend/deposit/checkout', {amount});
|
||||
return this.http.post<{ sessionId: string }>('/backend/deposit/checkout', { amount });
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue