argos/dmp-frontend/src/app/core/services/external-sources/registry/external-registry.service.ts

19 lines
611 B
TypeScript
Raw Normal View History

2019-01-18 18:03:45 +01:00
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);
2019-01-18 18:03:45 +01:00
}
}