mirror of
https://github.com/Lukas0025/YAGS.git
synced 2025-04-10 17:32:17 +01:00
23 lines
774 B
PHP
23 lines
774 B
PHP
<?php
|
|
$container = new \wsos\structs\container();
|
|
$api = new \wsos\api\functional\manager("API");
|
|
|
|
$templates = $container->get("templateLoader");
|
|
$context = $container->get("context");
|
|
$auth = $container->get("auth");
|
|
$router = $container->get("router");
|
|
|
|
// to show this page user must be logined
|
|
//$auth->requireLogin();
|
|
|
|
//register API functions
|
|
include_once(__DIR__ . "/observations.php");
|
|
include_once(__DIR__ . "/stations.php");
|
|
include_once(__DIR__ . "/targets.php");
|
|
include_once(__DIR__ . "/crons.php");
|
|
include_once(__DIR__ . "/transmitters.php");
|
|
include_once(__DIR__ . "/receivers.php");
|
|
include_once(__DIR__ . "/uplinks.php");
|
|
|
|
//init API
|
|
$api->serve($router->getArgs()); |