mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-06-05 22:09:38 +02:00
Fix per richieste GET
Aggiunto messaggio di risorsa mancante per le richieste GET.
This commit is contained in:
@@ -46,7 +46,7 @@ try {
|
||||
// Richiesta GET (ottenimento elementi)
|
||||
case 'GET':
|
||||
// Risorsa specificata
|
||||
if (!empty($request)) {
|
||||
if (count($request) > 1) {
|
||||
$result = $api->retrieve($request);
|
||||
}
|
||||
|
||||
|
||||
@@ -121,6 +121,8 @@ class API extends \Util\Singleton
|
||||
$order[] = $column[0]['COLUMN_NAME'];
|
||||
}
|
||||
}
|
||||
} else {
|
||||
return self::error('notFound');
|
||||
}
|
||||
|
||||
// Generazione automatica delle query
|
||||
|
||||
Reference in New Issue
Block a user