Nextcloud-App/appinfo/routes.php
2021-09-18 21:15:03 +02:00

17 lines
313 B
PHP

<?php
return [
'resources' => [
'ticket_api' => ['url' => '/api/v1/tickets']
],
'routes' => [
['name' => 'page#index', 'url' => '/', 'verb' => 'GET'],
[
'name' => 'ticket_api#preflighted_cors',
'url' => '/api/v1/tickets',
'verb' => 'OPTIONS',
'requirements' => ['path' => '.+'],
],
],
];