diff --git a/exporter/packages.json b/exporter/packages.json index 2998804..b847df8 100755 --- a/exporter/packages.json +++ b/exporter/packages.json @@ -1,70 +1,70 @@ { - "available": { - "error": { - "1.0": [], - "2.0": [] - }, - "http": { - "1.0": [] - }, - "api": { - "1.0": { - "error": [ - "1.0" - ] - }, - "2.0": { - "error": [ - "2.0" - ] - }, - "2.2": { - "error": [ - "2.0" - ], - "http": [ - "1.0" - ] - } - }, - "orm": { - "0.8.1": { - "database": [ - "1.0" - ] - }, - "0.8.2": { - "database": [ - "2.0" - ] - } - }, - "database": { - "1.0": { - "error": [ - "1.0" - ] - }, - "2.0": { - "error": [ - "2.0" - ] - } - }, - "lightdb": { - "1.0": [] - }, - "router": { - "1.0": [], - "2.0": [] - } - }, - "installed": { - "api": "2.2", - "error": "2.0", - "http": "1.0", - "orm": "0.8.2", - "database": "2.0", - "router": "1.0" - } -} + "available": { + "error": { + "1.0": [], + "2.0": [] + }, + "http": { + "1.0": [] + }, + "api": { + "1.0": { + "error": [ + "1.0" + ] + }, + "2.0": { + "error": [ + "2.0" + ] + }, + "2.2": { + "error": [ + "2.0" + ], + "http": [ + "1.0" + ] + } + }, + "orm": { + "0.8.1": { + "database": [ + "1.0" + ] + }, + "0.8.2": { + "database": [ + "2.0" + ] + } + }, + "database": { + "1.0": { + "error": [ + "1.0" + ] + }, + "2.0": { + "error": [ + "2.0" + ] + } + }, + "lightdb": { + "1.0": [] + }, + "router": { + "1.0": [], + "2.0": [] + } + }, + "installed": { + "api": "2.2", + "error": "2.0", + "http": "1.0", + "orm": "0.8.2", + "database": "2.0", + "router": "2.0" + } +} \ No newline at end of file diff --git a/src/files/public_html/index.php b/src/files/public_html/index.php index b80cce8..86c88fd 100644 --- a/src/files/public_html/index.php +++ b/src/files/public_html/index.php @@ -1,56 +1,8 @@ - page d'accueil - $R->get('/?', function(){ header('Location: /homepage/'); }); - - - /* [2] On recupere la liste des pages du site - =========================================================*/ - // inclusion de la page - $R->get('([a-z+])/?', function($pagename){ include __PUBLIC__."/$pagename.php"; }); - - - - - // http://host/api/module/method -> ModuleRequest - $R->post('api(?:/(.*))?', function($url){ - $request = ModuleRequest::fromPost($url, $_POST); - $answer = $request->dispatch(); - - // Si c'est une réponse - if( $answer instanceof ModuleResponse ) - echo $answer->serialize(); - - }); - - - // N'importe -> page d'accueil - $R->get('.+', function(){ header('Location: /homepage/'); }); - $R->post('.+', function(){ header('Location: /homepage/'); }); - - - - - /* [3] On lance le routeur - ===================================================*/ $R->run(); -?>