www/squid: Fix camelCase API endpoint notation for https://github.com/opnsense/plugins/commit/ef2e005e8

This commit is contained in:
Monviech
2025-07-15 11:05:12 +02:00
committed by Franco Fichtner
parent 9b31fedd44
commit b7959fddb5
@@ -113,7 +113,7 @@ class SettingsController extends ApiMutableModelControllerBase
* create new cron item for remote acl or return already available one
* @return array status action
*/
public function fetchRBCronAction()
public function fetchRbCronAction()
{
$result = array("result" => "failed");
@@ -150,7 +150,7 @@ class SettingsController extends ApiMutableModelControllerBase
* search PAC Rule
* @return array
*/
public function searchPACRuleAction()
public function searchPacRuleAction()
{
return $this->searchBase('pac.rule', array("enabled", "description", "proxies", "matches"), "description");
}
@@ -160,7 +160,7 @@ class SettingsController extends ApiMutableModelControllerBase
* @param $uuid item unique id
* @return array
*/
public function getPACRuleAction($uuid = null)
public function getPacRuleAction($uuid = null)
{
return array("pac" => $this->getBase('rule', 'pac.rule', $uuid));
}
@@ -181,7 +181,7 @@ class SettingsController extends ApiMutableModelControllerBase
* @return array result status
* @throws \OPNsense\Base\ValidationException
*/
public function setPACRuleAction($uuid)
public function setPacRuleAction($uuid)
{
$this->pac_set_helper();
return $this->setBase('rule', 'pac.rule', $uuid);
@@ -192,7 +192,7 @@ class SettingsController extends ApiMutableModelControllerBase
* @param $uuid item unique id
* @return array status
*/
public function togglePACRuleAction($uuid)
public function togglePacRuleAction($uuid)
{
return $this->toggleBase('pac.rule', $uuid);
}
@@ -202,7 +202,7 @@ class SettingsController extends ApiMutableModelControllerBase
* @param $uuid item unique id
* @return array status
*/
public function delPACRuleAction($uuid)
public function delPacRuleAction($uuid)
{
return $this->delBase('pac.rule', $uuid);
}
@@ -212,7 +212,7 @@ class SettingsController extends ApiMutableModelControllerBase
* search PAC Proxy
* @return array
*/
public function searchPACProxyAction()
public function searchPacProxyAction()
{
return $this->searchBase('pac.proxy', array("enabled","proxy_type", "name", "url", "description"), "description");
}
@@ -222,7 +222,7 @@ class SettingsController extends ApiMutableModelControllerBase
* @param $uuid item unique id
* @return array
*/
public function getPACProxyAction($uuid = null)
public function getPacProxyAction($uuid = null)
{
return array("pac" => $this->getBase('proxy', 'pac.proxy', $uuid));
}
@@ -231,7 +231,7 @@ class SettingsController extends ApiMutableModelControllerBase
* add new PAC Proxy and set with attributes from post
* @return array
*/
public function addPACProxyAction()
public function addPacProxyAction()
{
$this->pac_set_helper();
return $this->addBase('proxy', 'pac.proxy');
@@ -243,7 +243,7 @@ class SettingsController extends ApiMutableModelControllerBase
* @return array result status
* @throws \OPNsense\Base\ValidationException
*/
public function setPACProxyAction($uuid)
public function setPacProxyAction($uuid)
{
$this->pac_set_helper();
return $this->setBase('proxy', 'pac.proxy', $uuid);
@@ -254,7 +254,7 @@ class SettingsController extends ApiMutableModelControllerBase
* @param $uuid item unique id
* @return array status
*/
public function delPACProxyAction($uuid)
public function delPacProxyAction($uuid)
{
return $this->delBase('pac.proxy', $uuid);
}
@@ -263,7 +263,7 @@ class SettingsController extends ApiMutableModelControllerBase
* search PAC Match
* @return array
*/
public function searchPACMatchAction()
public function searchPacMatchAction()
{
return $this->searchBase('pac.match', array("enabled", "name", "description", "negate", "match_type"), "name");
}
@@ -273,7 +273,7 @@ class SettingsController extends ApiMutableModelControllerBase
* @param $uuid item unique id
* @return array
*/
public function getPACMatchAction($uuid = null)
public function getPacMatchAction($uuid = null)
{
return array("pac" => $this->getBase('match', 'pac.match', $uuid));
}
@@ -282,7 +282,7 @@ class SettingsController extends ApiMutableModelControllerBase
* add new PAC Proxy and set with attributes from post
* @return array
*/
public function addPACMatchAction()
public function addPacMatchAction()
{
$this->pac_set_helper();
return $this->addBase('match', 'pac.match');
@@ -294,7 +294,7 @@ class SettingsController extends ApiMutableModelControllerBase
* @return array result status
* @throws \OPNsense\Base\ValidationException
*/
public function setPACMatchAction($uuid)
public function setPacMatchAction($uuid)
{
$this->pac_set_helper();
return $this->setBase('match', 'pac.match', $uuid);
@@ -305,7 +305,7 @@ class SettingsController extends ApiMutableModelControllerBase
* @param $uuid item unique id
* @return array status
*/
public function delPACMatchAction($uuid)
public function delPacMatchAction($uuid)
{
return $this->delBase('pac.match', $uuid);
}