mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-02-27 12:16:36 +00:00
Updated ApiClient to return pagination data when listing short URLs
This commit is contained in:
@@ -26,7 +26,7 @@ export class ShlinkApiClient {
|
||||
*/
|
||||
listShortUrls = (params = {}) => {
|
||||
return this._performRequest('/rest/short-codes', 'GET', params)
|
||||
.then(resp => resp.data.shortUrls.data)
|
||||
.then(resp => resp.data.shortUrls)
|
||||
.catch(e => this._handleAuthError(e, this.listShortUrls, [params]));
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user