feat(Verzeichnis): Client-Methode erstellt und Endpunkte angeordnet

This commit is contained in:
2025-07-29 09:59:52 +02:00
parent 3d8076e3b6
commit 098c2e1c47
3 changed files with 16 additions and 10 deletions

View File

@@ -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 })
}
}