Public Access
feat(play-next): page that picks the next backlog game
This commit is contained in:
1 parent
8dcd03f219
commit
2efdf64675
10 files changed
+502
-7
No files matched your search
@@ -25,6 +25,16 @@ export const saveBacklogEntry = (appid, entry) =>
|
||||
body: JSON.stringify(entry),
|
||||
});
|
||||
|
||||
/**
|
||||
* PUT /api/library/games/{appid}/status. The caller handles the response status.
|
||||
*/
|
||||
export const saveGameStatus = (appid, status) =>
|
||||
fetch(`${import.meta.env.VITE_CORE_API_URL}/api/library/games/${appid}/status`, {
|
||||
method: 'PUT',
|
||||
headers: {'Authorization': `Bearer ${localStorage.getItem('tbp_jwt')}`, 'Content-Type': 'application/json'},
|
||||
body: JSON.stringify({status}),
|
||||
});
|
||||
|
||||
export const libraryQuery = ({page, size, sort, status, q, maxMinutes}) => {
|
||||
const params = new URLSearchParams({page: String(page), size: String(size), sort});
|
||||
if (status) params.set('status', status);
|
||||
|
||||
Reference in new issue
Block a user