routes.php 248 B

123456789
  1. <?php
  2. return [
  3. 'routes' => [
  4. ['name' => 'pubPage#getByToken', 'url' => '/s/{token}', 'verb' => 'GET'],
  5. ['name' => 'privatePage#getByPath', 'url' => '/files/{path}', 'verb' => 'GET',
  6. 'requirements' => array('path' => '.+')],
  7. ]
  8. ];