mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
feat: update connector page
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import {request} from "./index";
|
||||
|
||||
enum ConnectorProvider {
|
||||
export enum ConnectorProvider {
|
||||
OVH = 'ovh'
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,11 @@ export async function getWatchlist(token: string) {
|
||||
return response.data
|
||||
}
|
||||
|
||||
export async function postWatchlist(domains: string[], triggers: { action: string, event: EventAction }[]) {
|
||||
export async function postWatchlist(domains: string[], triggers: {
|
||||
action: string,
|
||||
event: EventAction,
|
||||
connector?: string
|
||||
}[]) {
|
||||
const response = await request<{ token: string }>({
|
||||
method: 'POST',
|
||||
url: 'watchlists',
|
||||
|
||||
Reference in New Issue
Block a user