GoScrobble/web/src/Actions/api.js
Daniel Mason 2f8aa2e502
0.0.5
- Only allow ItemType:Audio from Jellyfin
- Fix NavBar for Mobile (Ugly hack but.. TO REWORK)
- Fixed registration page issues
- Add functionality to pull recent scrobbles to Dashboard
- Add MX record lookup validation for emails
- Add username validation for a-Z 0-9 _ and .
- Dashboard shows basic table of last 500 scrobbles.
2021-03-30 21:36:28 +13:00

18 lines
323 B
JavaScript

import ApiService from "../Services/api.service";
export const getStats = () => {
return ApiService.getStats().then(
(data) => {
return data.data;
}
);
};
export const getRecentScrobbles = (id) => {
return ApiService.getRecentScrobbles(id).then(
(data) => {
return data.data;
}
);
};