17 lines
346 B
PHP
17 lines
346 B
PHP
|
<?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;
|
||
|
})
|
||
|
];
|