Add new createTransaction method

This commit is contained in:
kevinpauer
2022-04-02 12:44:50 +02:00
parent c5e66b4720
commit 9de1258f7f
5 changed files with 53 additions and 11 deletions

View File

@@ -11,12 +11,25 @@ const httpOptions = {
})
export class AuthService {
constructor(private http: HttpClient) {}
/**
* @param {string} email
* @param {string} password
* @returns Observable
*/
login(email: string, password: string): Observable<any> {
return this.http.post(AUTH_API + '/login', {
email,
password,
});
}
/**
* @param {string} email
* @param {string} username
* @param {string} password
* @returns Observable
*/
register(email: string, username: string, password: string): Observable<any> {
return this.http.post(
AUTH_API + '/register',