import axiosInstance from "../axios";

export type ScoreData = {
    _id: string,
    deviceId: string,
    score: number,
    created_at: string,
    updated_at: string,
    __v: number,
    userId: string,
    id: string
}

export interface ScoreResponse {
    data: ScoreData[] | []
    score: number,
    total: number
}

export const getScoresList = () => axiosInstance.get<ScoreData, any>("/gps/score")

