1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-01-22 03:55:36 +01:00

Fix per richieste GET

Aggiunto messaggio di risorsa mancante per le richieste GET.
This commit is contained in:
Thomas Zilio 2018-05-04 18:50:15 +02:00
parent 2a9e32493e
commit eb3a11bdfc
2 changed files with 3 additions and 1 deletions

View File

@ -46,7 +46,7 @@ try {
// Richiesta GET (ottenimento elementi)
case 'GET':
// Risorsa specificata
if (!empty($request)) {
if (count($request) > 1) {
$result = $api->retrieve($request);
}

View File

@ -121,6 +121,8 @@ class API extends \Util\Singleton
$order[] = $column[0]['COLUMN_NAME'];
}
}
} else {
return self::error('notFound');
}
// Generazione automatica delle query