nextcloud-raw/appinfo/ routes.php
16 lines
511 B

  1. <?php
  2. /**
  3. * Create your routes in here. The name is the lowercase name of the controller
  4. * without the controller part, the stuff after the hash is the method.
  5. * e.g. page#index -> OCA\Static\Controller\PageController->index()
  6. *
  7. * The controller class has to be registered in the application.php file since
  8. * it's instantiated in there
  9. */
  10. return [
  11. 'routes' => [
  12. ['name' => 'page#index', 'url' => '/', 'verb' => 'GET'],
  13. ['name' => 'page#do_echo', 'url' => '/echo', 'verb' => 'POST'],
  14. ]
  15. ];