19 lines
611 B
TypeScript
19 lines
611 B
TypeScript
import { Injectable } from '@angular/core';
|
|
import { Observable } from 'rxjs';
|
|
import { environment } from '../../../../../environments/environment';
|
|
import { RegistryModel } from '../../../model/registry/registry';
|
|
import { BaseHttpService } from '../../http/base-http.service';
|
|
|
|
@Injectable()
|
|
export class ExternalRegistryService {
|
|
|
|
private actionUrl: string;
|
|
constructor(private http: BaseHttpService) {
|
|
this.actionUrl = environment.Server + 'registries/';
|
|
}
|
|
|
|
create(registerModel: RegistryModel): Observable<RegistryModel> {
|
|
return this.http.post<RegistryModel>(this.actionUrl, registerModel);
|
|
}
|
|
}
|