diff --git a/README.md b/README.md index 39ba9bf..541ffbd 100644 --- a/README.md +++ b/README.md @@ -23,14 +23,14 @@ detailed history of events (ownership changes, renewals, etc.) is not feasible w 1. Clone the repository 2. Build the Docker image locally - ```shell - docker compose -f compose.yaml -f compose.prod.yaml build --pull --no-cache - ``` + ```shell + docker compose -f compose.yaml -f compose.prod.yaml build --pull --no-cache + ``` 3. Modify environment variables and add static files to customize your instance 4. Start the project in production environment - ```shell - docker compose -f compose.yaml -f compose.prod.yaml up - ``` + ```shell + docker compose -f compose.yaml -f compose.prod.yaml up + ``` ## How it works? @@ -81,7 +81,7 @@ possible to predict in advance which user will win the domain name. The choice i ## Disclaimer -> [!WARNING] +> [!IMPORTANT] > * Domain Watchdog is an opensource project distributed under *GNU Affero General Public License v3.0 or later* license > * In the internal opration, everything is done to perform the least possible RDAP requests: rate limit, intelligent caching system, etc. diff --git a/assets/utils/api/watchlist.ts b/assets/utils/api/watchlist.ts index af2a806..db97e23 100644 --- a/assets/utils/api/watchlist.ts +++ b/assets/utils/api/watchlist.ts @@ -32,18 +32,3 @@ export async function deleteWatchlist(token: string): Promise { url: 'watchlists/' + token }) } - -export async function patchWatchlist(domains: string[], triggers: Event[]) { - const response = await request({ - method: 'PATCH', - url: 'watchlists', - data: { - domains, - triggers - }, - headers: { - "Content-Type": 'application/merge-patch+json' - } - }) - return response.data -} \ No newline at end of file diff --git a/src/Entity/WatchList.php b/src/Entity/WatchList.php index c5c926c..48b4e60 100644 --- a/src/Entity/WatchList.php +++ b/src/Entity/WatchList.php @@ -58,10 +58,12 @@ use Symfony\Component\Uid\Uuid; denormalizationContext: ['groups' => 'watchlist:create'], name: 'create' ), + /* new Patch( normalizationContext: ['groups' => 'watchlist:item'], denormalizationContext: ['groups' => 'watchlist:update'] ), + */ new Delete(), ], )]