This commit is contained in:
2026-01-21 08:21:19 +01:00
parent 4733e1a1cc
commit fd6e7c44e1
46 changed files with 3165 additions and 456 deletions

View File

@@ -91,8 +91,8 @@ export const monitorAPI = {
return response.data;
},
check: async (id: string) => {
const response = await api.post(`/monitors/${id}/check`);
check: async (id: string, type: 'all' | 'content' | 'seo' = 'all') => {
const response = await api.post(`/monitors/${id}/check`, { type });
return response.data;
},
@@ -103,6 +103,13 @@ export const monitorAPI = {
return response.data;
},
rankings: async (id: string, limit = 100) => {
const response = await api.get(`/monitors/${id}/rankings`, {
params: { limit },
});
return response.data;
},
snapshot: async (id: string, snapshotId: string) => {
const response = await api.get(`/monitors/${id}/history/${snapshotId}`);
return response.data;