1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-06-05 22:09:38 +02:00

Introduzione procedura di aggiornamento

This commit is contained in:
Dasc3er
2021-07-07 11:35:30 +02:00
parent 704a768d2b
commit a12b21ad51
21 changed files with 488 additions and 91 deletions

View File

@@ -35,17 +35,6 @@ class LegacyController extends Controller
return $response;
}
protected static function isApiRequest($path)
{
// Fix per redirect all'API
$api_request = false;
if (in_array($path, ['api', 'api/', 'api/index.php'])) {
$api_request = true;
}
return $api_request;
}
public static function simulate($path)
{
$base_path = base_path('legacy');
@@ -76,4 +65,15 @@ class LegacyController extends Controller
return $output;
}
protected static function isApiRequest($path)
{
// Fix per redirect all'API
$api_request = false;
if (in_array($path, ['api', 'api/', 'api/index.php'])) {
$api_request = true;
}
return $api_request;
}
}