Sistema web para crear proyecto web nuevo
This commit is contained in:
16
setup/api/config.php
Normal file
16
setup/api/config.php
Normal file
@ -0,0 +1,16 @@
|
||||
<?php
|
||||
use Psr\Container\ContainerInterface as Container;
|
||||
|
||||
return [
|
||||
'base_url' => DI\decorate(function($prev, Container $c) {
|
||||
return implode('/', [
|
||||
$prev,
|
||||
'api'
|
||||
]);
|
||||
}),
|
||||
'urls' => DI\decorate(function($prev, Container $c) {
|
||||
$arr = (array) $prev;
|
||||
$arr['gitea'] = $c->get('gitea');
|
||||
return (object) $arr;
|
||||
})
|
||||
];
|
Reference in New Issue
Block a user