api: API allow cidr network searches of the ARP table (#6378)

* api: API allow cidr network searches of the ARP table

* Allow non-encoded / in request
I also noticed that all is allowed to be called without device, which the sql query does not support.
This commit is contained in:
Tony Murray
2017-04-07 15:05:46 -05:00
committed by Neil Lathwood
parent b1483e3d2e
commit 4ab358501d
3 changed files with 16 additions and 5 deletions

View File

@@ -153,7 +153,7 @@ $app->group(
$app->group(
'/ip',
function () use ($app) {
$app->get('/arp/:ip', 'authToken', 'list_arp')->name('list_arp');
$app->get('/arp/:ip', 'authToken', 'list_arp')->name('list_arp')->conditions(array('ip' => '[^?]+'));
}
);
}