mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-18 02:05:36 +00:00
fix: watchlist triggers creation
This commit is contained in:
parent
596b9b548d
commit
51b10db9b5
@ -60,7 +60,7 @@ export async function getTrackedDomainList(params: { page: number, itemsPerPage:
|
||||
export async function createWatchlistTrigger(watchListToken: string, watchListTrigger: WatchlistTrigger): Promise<WatchlistTrigger> {
|
||||
const response = await request<WatchlistTrigger>({
|
||||
method: 'POST',
|
||||
url: `watchlists/${watchListToken}/triggers/${watchListTrigger.action}/${watchListTrigger.event}`,
|
||||
url: `watchlist-triggers`,
|
||||
data: watchListTrigger,
|
||||
});
|
||||
return response.data;
|
||||
|
||||
@ -26,7 +26,9 @@ use Symfony\Component\Serializer\Attribute\Groups;
|
||||
],
|
||||
),
|
||||
new Post(
|
||||
security: 'true', // FIXME check the submitted object
|
||||
uriTemplate: '/watchlist-triggers',
|
||||
uriVariables: [],
|
||||
security: 'true'
|
||||
),
|
||||
new Delete(),
|
||||
],
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user