mirror of
https://github.com/gosticks/web.git
synced 2026-08-12 12:10:20 +00:00
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:
Vendored
+8
@@ -202,3 +202,11 @@ interface ApiClientData {
|
||||
ip: string;
|
||||
count: number;
|
||||
}
|
||||
|
||||
interface ApiLiveLogData {
|
||||
log: Array<{
|
||||
timestamp: number;
|
||||
message: string;
|
||||
}>;
|
||||
nextID: number;
|
||||
}
|
||||
|
||||
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user