mirror of
https://github.com/usual2970/certimate.git
synced 2025-09-19 14:36:01 +00:00
Certificate displaying and monitoring
This commit is contained in:
15
ui/src/api/statistics.ts
Normal file
15
ui/src/api/statistics.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { getPb } from "@/repository/api";
|
||||
|
||||
export const get = async () => {
|
||||
const pb = getPb();
|
||||
|
||||
const resp = await pb.send("/api/statistics/get", {
|
||||
method: "GET",
|
||||
});
|
||||
|
||||
if (resp.code != 0) {
|
||||
throw new Error(resp.msg);
|
||||
}
|
||||
|
||||
return resp.data;
|
||||
};
|
Reference in New Issue
Block a user