Skip to content

Commit bac979e

Browse files
authored
Add getIPRecentRequests method to API, fix page ipDetails (#55)
1 parent b846e87 commit bac979e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

web/static/js/core/api.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -881,6 +881,15 @@ const LogLynxAPI = {
881881
return this.get(`/ip/${ip}/performance/response-time`);
882882
},
883883

884+
/**
885+
* Get recent requests for a specific IP
886+
* @param {string} ip - IP address
887+
* @param {number} limit - Number of results (1-100)
888+
*/
889+
async getIPRecentRequests(ip, limit = 50) {
890+
return this.get(`/ip/${ip}/recent-requests`, { limit });
891+
},
892+
884893
/**
885894
* Search for IPs matching a query
886895
* @param {string} query - Search query (partial IP)

0 commit comments

Comments
 (0)