new interface for dnsmasq log on APISigned-off-by: Adam Warner <me@adamwarner.co.uk>

Signed-off-by: Adam Warner <me@adamwarner.co.uk>
This commit is contained in:
Adam Warner
2019-11-24 22:26:28 +00:00
parent b6b1750c27
commit 9194cd88e4
2 changed files with 12 additions and 0 deletions
+8
View File
@@ -202,3 +202,11 @@ interface ApiClientData {
ip: string;
count: number;
}
interface ApiLiveLogData {
log: Array<{
timestamp: number;
message: string;
}>;
nextID: number;
}
+4
View File
@@ -264,6 +264,10 @@ export class ApiClient {
): Promise<ApiSuccessResponse> => {
return this.http.put("settings/web", settings);
};
getLiveLog = (params: any): Promise<ApiLiveLogData> => {
return this.http.get("ftl/dnsmasq_log?" + paramsToString(params));
};
}
export default new ApiClient(new HttpClient(config));