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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user