embalse individual
This commit is contained in:
@ -7,6 +7,10 @@ export default class Api {
|
||||
return Api._makeReq('/embalses');
|
||||
}
|
||||
|
||||
static async embalseById(id: string): Promise<Embalse[]> {
|
||||
return Api._makeReq(`/embalses/${id}`);
|
||||
}
|
||||
|
||||
static async _makeReq<T>(endpoint: string): Promise<T[]> {
|
||||
let hasMore = true;
|
||||
|
||||
|
Reference in New Issue
Block a user