ruolo == "SAD")) { die_forbidden(); } // Per selezionare l'ente $codice_ente = intval($_REQUEST["codice_ente"] ?? ""); if(empty($codice_ente)) { die_forbidden(); } global $pdo; $info_ente = Ente::getInfoFromID($codice_ente); if($info_ente[0]["db"] != "S") { die_forbidden(); } $pdo->setConnessioneEnte($codice_ente); $endpoints = ElenchiAPI::getEndpoints(); if(!empty($_POST)) { $action = $_POST["action"] ?? ""; $success = false; $message = "Azione non consentita"; switch($action) { case "delete": $success = ElenchiAPI::deleteLocalEndpoint($_POST, $message); break; case "create": $success = ElenchiAPI::createLocalEndpoint($_POST, $message); break; } if($success) { ?> swal({text:"Azione completata con successo",type:"success"}); swal({title:"Errore", text:``,type:"error"});

endpoint globali (config.json)

$endpoint) : ?> class="btn my-1 status-border-primary btn-block btn-light text-left">

endpoint locali su ente

$endpoint) : ?>
  • key:
  • displayName:
  • endpoint:

Aggiungi endpoint locale