Reason for this implementation is some clients having trouble configuring the rest api either due to not having proper access to the webserver in a shared hosting environment or security restrictions. But still from icehrm frontend we need to consume the backend rest api.
8 lines
181 B
PHP
Executable File
8 lines
181 B
PHP
Executable File
<?php
|
|
include ('config.php');
|
|
if (isset($_REQUEST['method']) && isset($_REQUEST['url'])) {
|
|
include (APP_BASE_PATH.'api.php');
|
|
} else {
|
|
include (APP_BASE_PATH.'rest.php');
|
|
}
|