GoScrobble/web/src/Services/user.service.js
Daniel Mason 5fd9d41069
- Login flow working..
- 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
2021-03-29 20:58:43 +13:00

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();