feat: admin clear cache (#263)

* feat: admin clear cache

* feat: admin clear cache
This commit is contained in:
Hoan Luu Huu authored and GitHub committed 2023-06-01 07:49:26 -04:00
1 parent 377fd40e2c
commit fbe71925b4
4 files changed
+59 -8

No files matched your search

+1
View File
@@ -248,3 +248,4 @@ export const API_SYSTEM_INFORMATION = `${API_BASE_URL}/SystemInformation`;
export const API_LCRS = `${API_BASE_URL}/Lcrs`;
export const API_LCR_ROUTES = `${API_BASE_URL}/LcrRoutes`;
export const API_LCR_CARRIER_SET_ENTRIES = `${API_BASE_URL}/LcrCarrierSetEntries`;
export const API_TTS_CACHE = `${API_BASE_URL}/TtsCache`;
+5
View File
@@ -24,6 +24,7 @@ import {
API_LCR_ROUTES,
API_LCR_CARRIER_SET_ENTRIES,
API_LCRS,
API_TTS_CACHE,
} from "./constants";
import { ROUTE_LOGIN } from "src/router/routes";
import {
@@ -577,6 +578,10 @@ export const deleteLcrRoute = (sid: string) => {
return deleteFetch<EmptyResponse>(`${API_LCR_ROUTES}/${sid}`);
};
export const deleteTtsCache = () => {
return deleteFetch<EmptyResponse>(API_TTS_CACHE);
};
/** Named wrappers for `getFetch` */
export const getUser = (sid: string) => {
+4
View File
@@ -123,6 +123,10 @@ export interface SystemInformation {
monitoring_domain_name: string;
}
export interface TtsCache {
size: number;
}
/** API responses/payloads */
export interface User {