mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-04-20 13:36:20 +00:00
Updated short URL visits loading so that it loads visits in several requests
This commit is contained in:
@@ -22,9 +22,9 @@ export default class ShlinkApiClient {
|
||||
.then((resp) => resp.data);
|
||||
};
|
||||
|
||||
getShortUrlVisits = (shortCode, dates) =>
|
||||
this._performRequest(`/short-urls/${shortCode}/visits`, 'GET', dates)
|
||||
.then((resp) => resp.data.visits.data);
|
||||
getShortUrlVisits = (shortCode, query) =>
|
||||
this._performRequest(`/short-urls/${shortCode}/visits`, 'GET', query)
|
||||
.then((resp) => resp.data.visits);
|
||||
|
||||
getShortUrl = (shortCode) =>
|
||||
this._performRequest(`/short-urls/${shortCode}`, 'GET')
|
||||
|
||||
Reference in New Issue
Block a user