Last active
December 28, 2017 18:29
-
-
Save Doopin/2cfad36f58a0d36b2ed439e4bf8037ed to your computer and use it in GitHub Desktop.
Module Config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
[ | |
'router' => [ | |
'routes' => [ | |
'api.rest' => [ | |
'type' => 'Hostname', | |
'options' => [ | |
'route' => 'api.site.dev' | |
], | |
'may_terminate' => false, | |
'child_routes' => [ | |
'api.rest.home' => [ | |
'type' => 'Literal', | |
'options' => [ | |
'route' => '/', | |
'defaults' => [ | |
'controller' => 'Api\\V1\\Rest\\Welcome\\Controller', | |
] | |
], | |
'may_terminate' => true, | |
'child_routes' => [ | |
'api.rest.app' => [ | |
'type' => 'Literal', | |
'options' => [ | |
'route' => 'app', | |
], | |
'may_terminate' => false, | |
'child_routes' => [ | |
'api.rest.app.posts' => [ | |
'type' => 'Literal', | |
'options' => [ | |
'route' => '/posts', | |
'defaults' => [ | |
'controller' => 'Api\\V1\\Rest\\Post\\Controller', | |
], | |
], | |
] | |
] | |
] | |
], | |
] | |
] | |
], | |
] | |
] | |
]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment