feat: New api endpoint for statistics

This commit is contained in:
sai80082 committed 2024-09-12 13:58:29 +00:00
1 parent dbfb10b73a
commit 7df379336d
4 files changed
+103 -19

No files matched your search

+5 -1
View File
@@ -1,4 +1,4 @@
import { EXIF_DISTRIBUTION_PATH } from "@/config/routes";
import { ASSET_STATISTICS, EXIF_DISTRIBUTION_PATH } from "@/config/routes";
import API from "@/lib/api";
export type ISupportedEXIFColumns =
@@ -7,3 +7,7 @@ export type ISupportedEXIFColumns =
export const getExifDistribution = async (column: ISupportedEXIFColumns) => {
return API.get(EXIF_DISTRIBUTION_PATH(column));
};
export const getAssetStatistics = async () => {
return API.get(ASSET_STATISTICS);
}