API Base App

This commit is contained in:
2022-11-09 15:20:04 -03:00
parent 1cf5a1f094
commit 0fbf73b3fd
19 changed files with 267 additions and 0 deletions

View File

@ -0,0 +1,21 @@
<?php
use Psr\Container\ContainerInterface;
return [
'base_folder' => function() {
return dirname(__FILE__, 3);
},
'resources_folder' => function(ContainerInterface $container) {
return implode(DIRECTORY_SEPARATOR, [
$container->get('base_folder'),
'resources'
]);
},
'routes_folder' => function(ContainerInterface $container) {
return implode(DIRECTORY_SEPARATOR, [
$container->get('resources_folder'),
'routes'
]);
},
'attachments_folder' => $_ENV['ATTACHMENTS_FOLDER'],
];