net/wol: fix ACL dasbhoard definitions

This commit is contained in:
Franco Fichtner
2024-09-13 12:20:21 +02:00
parent b357934565
commit bae6b2bb9e
3 changed files with 3 additions and 3 deletions
@@ -3,7 +3,7 @@
<name>Services: Wake on LAN</name>
<patterns>
<pattern>ui/wol/*</pattern>
<pattern>api/wol/*</pattern>
<pattern>api/wol/wol/*</pattern>
</patterns>
</page-services-wakeonlan>
</acl>
@@ -2,9 +2,9 @@
<wol>
<filename>WakeOnLan.js</filename>
<endpoints>
<endpoint>/api/diagnostics/interface/getArp*</endpoint>
<endpoint>/api/wol/wol/searchHost</endpoint>
<endpoint>/api/wol/wol/set</endpoint>
<endpoint>/diagnostics/interface/getArp</endpoint>
</endpoints>
<translations>
<title>WakeOnLan</title>
@@ -62,7 +62,7 @@ export default class WakeOnLan extends BaseTableWidget {
//NOTE: this ARP list call is the most expensive one and can grow substantialy in big networks
//With previous widget it had been done on the backend side with direct exec of 'arp -an | grep ...'
const arp = await this.ajaxCall('/api/diagnostics/interface/getArp');
const arp = await this.ajaxCall(`/api/diagnostics/interface/getArp${''}`);
for(let it = 0; it < data.rows.length; it++){
const item = data.rows[it];