rework structure
added Router added .htaccess removed API-Module => is not used renamed batch to CRON
This commit is contained in:
parent
ccf2f506f0
commit
c33bb4cb3a
37 changed files with 680 additions and 190 deletions
29
base/router.base.php
Normal file
29
base/router.base.php
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
<?php
|
||||
// file is included by Setup! so it can Render direct into VenomCore!
|
||||
// this routes are only for API use!
|
||||
// if you not need the Router disable it in the Config then the Default Seo-Loader will only used
|
||||
|
||||
use Venom\Routing\Route;
|
||||
use Venom\Routing\Router;
|
||||
|
||||
if (!isset($venom)) {
|
||||
echo 'make sure Venom is loaded!';
|
||||
exit(1);
|
||||
}
|
||||
|
||||
$router = new Router('defaultRouter', 1.0, 'api/');
|
||||
$router->addRoutes([
|
||||
'/test' => [
|
||||
'cl' => Route::class,
|
||||
'roles' => ['ROLE_GUEST'],
|
||||
'routes' => [
|
||||
'*' => [
|
||||
"GET" => 'getAll'
|
||||
],
|
||||
'1' => [
|
||||
"GET" => 'getAll'
|
||||
]
|
||||
]
|
||||
],
|
||||
]);
|
||||
$venom->addRouter('defaultRouter', $router);
|
||||
Loading…
Add table
Add a link
Reference in a new issue