Update the api endpoint from /check-endpoint/url to /resolution/url
This commit is contained in:
1 parent
9bc42cbf4f
commit
d61a41fd95
5 files changed
+5
-5
No files matched your search
@@ -32,7 +32,7 @@ export const createUptimeMonitor = createAsyncThunk(
|
|||||||
);
|
);
|
||||||
|
|
||||||
export const checkEndpointResolution = createAsyncThunk(
|
export const checkEndpointResolution = createAsyncThunk(
|
||||||
"monitors/checkEnpoint",
|
"monitors/checkEndpoint",
|
||||||
async(data, thunkApi) => {
|
async(data, thunkApi) => {
|
||||||
try{
|
try{
|
||||||
const { authToken, monitorURL } = data;
|
const { authToken, monitorURL } = data;
|
||||||
|
|||||||
@@ -385,7 +385,7 @@ const CreateMonitor = () => {
|
|||||||
onClick={handleCreateMonitor}
|
onClick={handleCreateMonitor}
|
||||||
disabled={Object.keys(errors).length !== 0 && true}
|
disabled={Object.keys(errors).length !== 0 && true}
|
||||||
>
|
>
|
||||||
Create Monitor
|
Create monitor
|
||||||
</Button>
|
</Button>
|
||||||
</Stack>
|
</Stack>
|
||||||
</Stack>
|
</Stack>
|
||||||
|
|||||||
@@ -107,7 +107,7 @@ class NetworkService {
|
|||||||
|
|
||||||
if (monitorURL) params.append("monitorURL", monitorURL);
|
if (monitorURL) params.append("monitorURL", monitorURL);
|
||||||
|
|
||||||
return this.axiosInstance.get(`/monitors/check-endpoint/url?${params.toString()}`, {
|
return this.axiosInstance.get(`/monitors/resolution/url?${params.toString()}`, {
|
||||||
headers: {
|
headers: {
|
||||||
Authorization: `Bearer ${authToken}`,
|
Authorization: `Bearer ${authToken}`,
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
|
|||||||
+1
-1
@@ -845,7 +845,7 @@
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"/monitors//check-endpoint/url": {
|
"/monitors/resolution/url": {
|
||||||
"get": {
|
"get": {
|
||||||
"tags": ["monitors"],
|
"tags": ["monitors"],
|
||||||
"description": "Check DNS resolution for a given URL",
|
"description": "Check DNS resolution for a given URL",
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ router.post(
|
|||||||
);
|
);
|
||||||
|
|
||||||
router.get(
|
router.get(
|
||||||
"/check-endpoint/url",
|
"/resolution/url",
|
||||||
isAllowed(["admin", "superadmin"]),
|
isAllowed(["admin", "superadmin"]),
|
||||||
monitorController.checkEndpointResolution
|
monitorController.checkEndpointResolution
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in new issue
Block a user