mirror of
https://github.com/pierre42100/comunic
synced 2025-07-12 13:02:59 +00:00
First commit
This commit is contained in:
21
inc/api/apiServer.inc.php
Normal file
21
inc/api/apiServer.inc.php
Normal file
@ -0,0 +1,21 @@
|
||||
<?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();
|
Reference in New Issue
Block a user