mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-06 23:33:13 +08:00
Improved config
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
use Zend\Expressive\Application;
|
||||
use Zend\ServiceManager\ServiceManager;
|
||||
|
||||
chdir(dirname(__DIR__));
|
||||
|
||||
require __DIR__ . '/../vendor/autoload.php';
|
||||
|
||||
// Build container
|
||||
|
||||
@@ -12,6 +12,15 @@ return [
|
||||
},
|
||||
'allowed_methods' => ['GET'],
|
||||
],
|
||||
[
|
||||
'name' => 'cli',
|
||||
'path' => 'command-name',
|
||||
'middleware' => function ($req, $resp) {
|
||||
$resp->getBody()->write('Hello world from cli');
|
||||
return $resp;
|
||||
},
|
||||
'allowed_methods' => ['GET'],
|
||||
],
|
||||
],
|
||||
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user