mirror of
https://github.com/idanoo/GoScrobble
synced 2025-07-01 05:32:18 +00:00
- Jellyfin scrobble working - Returns scrobbles via API for authed users /api/v1/user/{uuid}/scrobble - Add redis handler + funcs - Move middleware to pass in uuid as needed
18 lines
441 B
JavaScript
18 lines
441 B
JavaScript
import axios from 'axios';
|
|
import authHeader from './auth-header';
|
|
|
|
class UserService {
|
|
getPublicContent() {
|
|
return axios.get(process.env.REACT_APP_API_URL + 'all');
|
|
}
|
|
|
|
getUserBoard() {
|
|
return axios.get(process.env.REACT_APP_API_URL + 'user', { headers: authHeader() });
|
|
}
|
|
|
|
getAdminBoard() {
|
|
return axios.get(process.env.REACT_APP_API_URL + 'admin', { headers: authHeader() });
|
|
}
|
|
}
|
|
|
|
export default new UserService();
|