mirror of
https://github.com/pierre42100/comunic
synced 2024-11-17 02:51:13 +00:00
21 lines
514 B
PHP
21 lines
514 B
PHP
|
<?php
|
||
|
/**
|
||
|
* API Server
|
||
|
*
|
||
|
* @author Pierre HUBERT
|
||
|
*/
|
||
|
|
||
|
//Security
|
||
|
isset($_SESSION) OR exit("Invalid call ! - ".$_SERVER['PHP_SELF']);
|
||
|
|
||
|
$serviceName = "testService";
|
||
|
$token = "G5AoxG/URyYBDVyLYnsnVpQL0p+JTL7QgOopwQIDAQABAoIBAC7kB2BUVDEm3Dy4";
|
||
|
|
||
|
exit();
|
||
|
//Server framework inclusion
|
||
|
require_once(relativePath_3rdparty("RestServer/RestServer.php"));
|
||
|
|
||
|
//Creating server
|
||
|
$serverState = ($mode_site == "offline" ? "debug" : "production");
|
||
|
$server = new \Jacwright\RestServer\RestServer($serverState);
|
||
|
$server->handle();
|