added basic AccountService
This commit is contained in:
17
src/app/account/account.service.ts
Normal file
17
src/app/account/account.service.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { HttpClient } from '@angular/common/http';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
})
|
||||
export class AccountService {
|
||||
|
||||
userName: string = null;
|
||||
|
||||
constructor(private httpClient: HttpClient) { }
|
||||
|
||||
login(username, password) {
|
||||
return this.httpClient.post<User>
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user