Created entities

This commit is contained in:
Alejandro Celaya
2016-04-17 10:46:35 +02:00
parent b20654ee2d
commit b436edb991
6 changed files with 323 additions and 12 deletions

View File

@@ -0,0 +1,15 @@
<?php
return [
'routes' => [
[
'name' => 'cli',
'path' => '/command-name',
'middleware' => function ($req, $resp) {
},
'allowed_methods' => ['CLI'],
],
],
];

View File

@@ -7,20 +7,10 @@ return [
'name' => 'home',
'path' => '/',
'middleware' => function ($req, $resp) {
$resp->getBody()->write('Hello world');
return $resp;
},
'allowed_methods' => ['GET'],
],
[
'name' => 'cli',
'path' => '/command-name',
'middleware' => function ($req, $resp) {
$resp->getBody()->write('Hello world from cli');
return $resp;
},
'allowed_methods' => ['CLI'],
],
],
];