13 lines
350 B
TypeScript
13 lines
350 B
TypeScript
import { Injectable } from '@angular/core';
|
|
import { HttpClient } from '@angular/common/http';
|
|
import { DropZoneResp } from '../models/dropzone';
|
|
|
|
@Injectable()
|
|
export class ServiceApi {
|
|
constructor(private http: HttpClient) { }
|
|
|
|
public getListOfDropZones() {
|
|
return this.http.get<DropZoneResp>('http://localhost:1234/api/DropZone');
|
|
}
|
|
}
|