major update
This commit is contained in:
@@ -21,7 +21,7 @@ export class ApiError extends Error {
|
||||
*/
|
||||
const apiClient = axios.create({
|
||||
baseURL: '/api/v1/',
|
||||
timeout: 30_000,
|
||||
timeout: 120_000,
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
});
|
||||
|
||||
|
||||
@@ -13,6 +13,6 @@ export function getRankings() {
|
||||
|
||||
export function updateWeights(weights: Record<string, number>) {
|
||||
return apiClient
|
||||
.put<{ message: string }>('scores/weights', weights)
|
||||
.put<{ message: string }>('scores/weights', { weights })
|
||||
.then((r) => r.data);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user