add domain feature
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
import {Injectable} from '@angular/core';
|
||||
import {HttpClient} from '@angular/common/http';
|
||||
|
||||
import {environment} from '../../environments/environment';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class UserDomainService {
|
||||
|
||||
constructor(private http: HttpClient) {
|
||||
}
|
||||
|
||||
get() {
|
||||
return this.http.get(environment.apiUrl + "/users/domains");
|
||||
}
|
||||
|
||||
create(alias) {
|
||||
return this.http.post(environment.apiUrl + "/users/domains", alias);
|
||||
}
|
||||
|
||||
update(alias) {
|
||||
return this.http.patch(environment.apiUrl + "/users/domains", alias);
|
||||
}
|
||||
|
||||
delete(id) {
|
||||
return this.http.delete(environment.apiUrl + "/users/domains/" + id);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user