diff --git a/src/stores/AppService.ts b/src/stores/AppService.ts index 3e8cc45..a067742 100644 --- a/src/stores/AppService.ts +++ b/src/stores/AppService.ts @@ -19,27 +19,27 @@ export class AbstractService { return response.json() } - public async getList(endpoint: string) : Promise< Array > { + public async getList(endpoint: string) : Promise { return await this.responseGD(address + endpoint, 'GET') } - public async getOne(endpoint: string) : Promise { + public async getOne(endpoint: string) : Promise { return await this.responseGD(address + endpoint, 'GET') } - public async post(endpoint: string, body: T) : Promise { + public async post(endpoint: string, body: T) : Promise { return await this.responseCRU(address + endpoint, 'POST', body) } - public async put(endpoint: string, body: T) : Promise { + public async put(endpoint: string, body: T) : Promise { return await this.responseCRU(address + endpoint, 'PUT', body) } - public async patch(endpoint: string, body: T) : Promise { + public async patch(endpoint: string, body: T) : Promise { return await this.responseCRU(address + endpoint, 'PATCH', body) } - public async delete(endpoint: string) : Promise { + public async delete(endpoint: string) : Promise { return await this.responseGD(address + endpoint, 'DELETE') } } \ No newline at end of file