18 lines
362 B
TypeScript
18 lines
362 B
TypeScript
import axiosInstance from "../axios";
|
|
|
|
|
|
export interface AwardsResponse {
|
|
_id: string,
|
|
score: number,
|
|
title: string,
|
|
desc: string,
|
|
expireDate: string,
|
|
created_at: string,
|
|
updated_at: string,
|
|
__v: number,
|
|
id: string
|
|
}
|
|
|
|
export const getAwardsList = () => axiosInstance.get<AwardsResponse[] | AwardsResponse | []>("/gps/award")
|
|
|