Updated to axios 1.0

This commit is contained in:
Alejandro Celaya
2022-10-05 17:12:10 +02:00
parent a7a968ab6e
commit d755e8ffc4
3 changed files with 25 additions and 14 deletions

View File

@@ -18,7 +18,6 @@ import {
ShlinkShortUrlsListParams,
ShlinkShortUrlsListNormalizedParams,
} from '../types';
import { stringifyQuery } from '../../utils/helpers/query';
import { orderToString } from '../../utils/helpers/ordering';
const buildShlinkBaseUrl = (url: string) => (url ? `${url}/rest/v2` : '');
@@ -123,6 +122,6 @@ export class ShlinkApiClient {
headers: { 'X-Api-Key': this.apiKey },
params: rejectNilProps(query),
data: body,
paramsSerializer: stringifyQuery,
paramsSerializer: { indexes: false },
});
}