mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
fix: remove patch watchlist
This commit is contained in:
14
README.md
14
README.md
@@ -23,14 +23,14 @@ detailed history of events (ownership changes, renewals, etc.) is not feasible w
|
|||||||
|
|
||||||
1. Clone the repository
|
1. Clone the repository
|
||||||
2. Build the Docker image locally
|
2. Build the Docker image locally
|
||||||
```shell
|
```shell
|
||||||
docker compose -f compose.yaml -f compose.prod.yaml build --pull --no-cache
|
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
|
3. Modify environment variables and add static files to customize your instance
|
||||||
4. Start the project in production environment
|
4. Start the project in production environment
|
||||||
```shell
|
```shell
|
||||||
docker compose -f compose.yaml -f compose.prod.yaml up
|
docker compose -f compose.yaml -f compose.prod.yaml up
|
||||||
```
|
```
|
||||||
|
|
||||||
## How it works?
|
## How it works?
|
||||||
|
|
||||||
@@ -81,7 +81,7 @@ possible to predict in advance which user will win the domain name. The choice i
|
|||||||
|
|
||||||
## Disclaimer
|
## Disclaimer
|
||||||
|
|
||||||
> [!WARNING]
|
> [!IMPORTANT]
|
||||||
> * Domain Watchdog is an opensource project distributed under *GNU Affero General Public License v3.0 or later* license
|
> * 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
|
> * In the internal opration, everything is done to perform the least possible RDAP requests: rate limit, intelligent
|
||||||
caching system, etc.
|
caching system, etc.
|
||||||
|
|||||||
@@ -32,18 +32,3 @@ export async function deleteWatchlist(token: string): Promise<void> {
|
|||||||
url: 'watchlists/' + token
|
url: 'watchlists/' + token
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function patchWatchlist(domains: string[], triggers: Event[]) {
|
|
||||||
const response = await request<Watchlist>({
|
|
||||||
method: 'PATCH',
|
|
||||||
url: 'watchlists',
|
|
||||||
data: {
|
|
||||||
domains,
|
|
||||||
triggers
|
|
||||||
},
|
|
||||||
headers: {
|
|
||||||
"Content-Type": 'application/merge-patch+json'
|
|
||||||
}
|
|
||||||
})
|
|
||||||
return response.data
|
|
||||||
}
|
|
||||||
@@ -58,10 +58,12 @@ use Symfony\Component\Uid\Uuid;
|
|||||||
denormalizationContext: ['groups' => 'watchlist:create'],
|
denormalizationContext: ['groups' => 'watchlist:create'],
|
||||||
name: 'create'
|
name: 'create'
|
||||||
),
|
),
|
||||||
|
/*
|
||||||
new Patch(
|
new Patch(
|
||||||
normalizationContext: ['groups' => 'watchlist:item'],
|
normalizationContext: ['groups' => 'watchlist:item'],
|
||||||
denormalizationContext: ['groups' => 'watchlist:update']
|
denormalizationContext: ['groups' => 'watchlist:update']
|
||||||
),
|
),
|
||||||
|
*/
|
||||||
new Delete(),
|
new Delete(),
|
||||||
],
|
],
|
||||||
)]
|
)]
|
||||||
|
|||||||
Reference in New Issue
Block a user