Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions infra/api/apiClient/ApiClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,32 +6,32 @@ export class ApiClient {
this.request = request;
}

public async get<T>(url: string, options: ApiOptionalParams<T> = {}) {
async get<T>(url: string, options: ApiOptionalParams<T> = {}) {
let response = await this.makeRequest(RequestMethod.GET, url, options)
return response;
}

public async post<T>(url: string, options: ApiOptionalParams<T> = {}) {
async post<T>(url: string, options: ApiOptionalParams<T> = {}) {
let response = await this.makeRequest(RequestMethod.POST, url, options)
return response;
}

public async put<T>(url: string, options: ApiOptionalParams<T> = {}) {
async put<T>(url: string, options: ApiOptionalParams<T> = {}) {
let response = await this.makeRequest(RequestMethod.PUT, url, options)
return response;
}

public async patch<T>(url: string, options: ApiOptionalParams<T> = {}) {
async patch<T>(url: string, options: ApiOptionalParams<T> = {}) {
let response = await this.makeRequest(RequestMethod.PATCH, url, options)
return response;
}

public async delete<T>(url: string, options: ApiOptionalParams<T> = {}) {
async delete<T>(url: string, options: ApiOptionalParams<T> = {}) {
let response = await this.makeRequest(RequestMethod.DELETE, url, options)
return response;
}

public async paginateRequest<T>(
async paginateRequest<T>(
method: RequestMethod,
url: string,
paginationType: PaginationType,
Expand Down