feat(Verzeichnis): Client-Methode erstellt und Endpunkte angeordnet
This commit is contained in:
@@ -7,9 +7,10 @@ import { UrlService } from './url.service';
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
})
|
||||
// TODO: Consolidate all directory services and remove unnecessary methods.
|
||||
export class DirService {
|
||||
private baseUrl: string
|
||||
constructor(private http: HttpClient, urlService : UrlService) {
|
||||
constructor(private http: HttpClient, urlService: UrlService) {
|
||||
this.http = http;
|
||||
this.baseUrl = urlService.apiRoute.directory;
|
||||
}
|
||||
@@ -22,4 +23,8 @@ export class DirService {
|
||||
|
||||
return this.http.get<DirUser[]>(this.baseUrl, { params, withCredentials: true });
|
||||
}
|
||||
|
||||
createSearchRoot(username: string, password: string): Observable<Object> {
|
||||
return this.http.post(this.baseUrl, { username: username, password: password }, { withCredentials: true })
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user