20240413#7

This commit is contained in:
User committed 2024-04-13 11:33:47 +03:00
1 parent 041ee17263
commit cb5408be4a
24 files changed
+16 -15

No files matched your search

-13
View File
@@ -1,13 +0,0 @@
# Index
- key: "/"
routes:
- action: "App\\Main\\Controllers\\IndexController"
method: "index"
params: ""
# Empty
- key: "<@any>"
routes:
- action: "App\\Main\\Controllers\\IndexController"
method: "emptyAction"
params: ""
-9
View File
@@ -1,9 +0,0 @@
<?php
$routes = glob(__DIR__."/{*.yaml}", GLOB_BRACE);
$routesCollection = array_map(function ($routesFile){
return file_get_contents($routesFile).PHP_EOL;
}, $routes);
return yaml_parse(implode($routesCollection));