Implement setting TTL on FE

This commit is contained in:
Alex Holliday committed 2024-09-16 12:13:29 +08:00
1 parent f075e15ab7
commit afa5cf1fc0
8 files changed
+163 -44

No files matched your search

+13
View File
@@ -582,6 +582,19 @@ class NetworkService {
}
);
}
async updateChecksTTL(authToken, ttl) {
return this.axiosInstance.put(
`/checks/ttl`,
{ ttl },
{
headers: {
Authorization: `Bearer ${authToken}`,
"Content-Type": "application/json",
},
}
);
}
}
export default NetworkService;