routes.php 336 B

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