Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

add api point

Maksim Mrug3a82e0935918
diff --git a/app/api/index.ts b/app/api/index.ts
index ba4275660..18e8b7a5b 100644
--- a/app/api/index.ts
+++ b/app/api/index.ts
@@ -1041,3 +1041,16 @@ export const getUsageInfo = () =>
? error.response.data
: error.response.data.message
})
+
+export const getFilters = (pid: string, type: string, password?: string) =>
+ api
+ .get(`log/filters?pid=${pid}&type=${type}`, {
+ headers: {
+ 'x-password': password,
+ },
+ })
+ .then((response): string[] => response.data)
+ .catch((error) => {
+ debug('%s', error)
+ throw error
+ })