12 lines
365 B
TypeScript
12 lines
365 B
TypeScript
|
|
import { apiHelpers } from "./api";
|
||
|
|
import { StatisticCountResponse } from "./statistic-count";
|
||
|
|
|
||
|
|
const countStatisticApi = {
|
||
|
|
getCountStatistic: async (options?: { skipAuth?: boolean }) =>
|
||
|
|
apiHelpers.get<StatisticCountResponse>("/count", {
|
||
|
|
headers: options?.skipAuth ? { "X-Skip-Auth": "true" } : undefined,
|
||
|
|
}),
|
||
|
|
};
|
||
|
|
|
||
|
|
export default countStatisticApi;
|