profile improvements, aliases feature
This commit is contained in:
@@ -67,6 +67,7 @@ export class I18nService {
|
||||
}
|
||||
|
||||
getInternal(key, args: string[], from): string {
|
||||
key += '';
|
||||
if(!from) {
|
||||
return key;
|
||||
} else if(from[key]) {
|
||||
|
||||
@@ -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 UserAliasService {
|
||||
|
||||
constructor(private http: HttpClient) {
|
||||
}
|
||||
|
||||
get() {
|
||||
return this.http.get(environment.apiUrl + "/users/aliases");
|
||||
}
|
||||
|
||||
create(alias) {
|
||||
return this.http.post(environment.apiUrl + "/users/aliases", alias);
|
||||
}
|
||||
|
||||
update(alias) {
|
||||
return this.http.patch(environment.apiUrl + "/users/aliases", alias);
|
||||
}
|
||||
|
||||
delete(id) {
|
||||
return this.http.delete(environment.apiUrl + "/users/aliases/" + id);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user