routes.php 577 B

1234567891011121314151617
  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\TestNextcloudApp\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' => 'occ#index', 'url' => '/', 'verb' => 'GET'],
  13. ['name' => 'occ#cmd', 'url' => '/cmd', 'verb' => 'POST'],
  14. ['name' => 'occ#list', 'url' => '/cmd', 'verb' => 'GET'],
  15. ]
  16. ];