Created
April 10, 2017 19:07
-
-
Save alanwillms/1dfde8a68bbd8f36e7df10265e9f46a9 to your computer and use it in GitHub Desktop.
URLs
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 | |
return [ | |
'urlManager' => [ | |
// URLs limpas = 'enablePrettyUrl' => true, | |
// URLs sem o index.php = 'showScriptName' => false, | |
'rules' => [ | |
// Regras específicas | |
'api/v2/clientes/<id_cliente>/historicos' => 'api/v2/historicos/index', | |
// Regra geral: | |
'api/v2/<controller:\w+>/<action:\w+>' => 'api/v2/<controller>/<action>', | |
] | |
], | |
]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment