D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
ensad
/
www
/
gestiondepersonal
/
core
/
Filename :
rest.php
back
Copy
<?php header('Access-Control-Allow-Origin: *'); header('Access-Control-Allow-Methods: DELETE, POST, GET, OPTIONS'); header('Access-Control-Allow-Headers: Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With'); header('Content-Type: application/json'); if (isset($_REQUEST['method']) && isset($_REQUEST['url'])) { include(APP_BASE_PATH . 'api-url-based.php'); } else { include(APP_BASE_PATH . 'api-rest.php'); }