Skip to content

Commit 7d3575b

Browse files
committed
fix: remove trailing slash from the index and store operation requests
1 parent 134e3df commit 7d3575b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/drivers/default/builders/queryBuilder.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export class QueryBuilder<
5353

5454
public async get(limit: number = 15, page: number = 1): Promise<Array<M>> {
5555
const response = await this.httpClient.request(
56-
'/',
56+
'',
5757
HttpMethod.GET,
5858
this.prepareQueryParams({ limit, page })
5959
);
@@ -93,7 +93,7 @@ export class QueryBuilder<
9393

9494
public async store(attributes: Attributes): Promise<M> {
9595
const response = await this.httpClient.request(
96-
'/',
96+
'',
9797
HttpMethod.POST,
9898
this.prepareQueryParams(),
9999
attributes

0 commit comments

Comments
 (0)