Skip to content

Instantly share code, notes, and snippets.

@ppeiris
Created September 8, 2016 18:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ppeiris/280bde401448ad3054bd3234e2b9b5c1 to your computer and use it in GitHub Desktop.
Save ppeiris/280bde401448ad3054bd3234e2b9b5c1 to your computer and use it in GitHub Desktop.
'router' => [
'routes' => [
'ispaccount.rest.ispaccount' => [
'type' => 'Segment',
'options' => [
'route' => '/api/ispaccount[/:ispaccount_id]',
'constraints' => [
'ispaccount_id' => '[a-zA-Z][a-zA-Z0-9_-]+',
],
'defaults' => [
'controller' => 'ispaccount\\V1\\Rest\\ISPAccount\\Controller',
],
],
],
],
],
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment