Nextcloud-App/appinfo/routes.php

17 lines
313 B
PHP
Raw Permalink Normal View History

2021-08-21 10:58:00 +00:00
<?php
2021-08-21 10:58:00 +00:00
return [
'resources' => [
2021-09-18 19:15:03 +00:00
'ticket_api' => ['url' => '/api/v1/tickets']
],
'routes' => [
['name' => 'page#index', 'url' => '/', 'verb' => 'GET'],
[
'name' => 'ticket_api#preflighted_cors',
2021-09-18 19:15:03 +00:00
'url' => '/api/v1/tickets',
'verb' => 'OPTIONS',
'requirements' => ['path' => '.+'],
],
],
2021-08-21 10:58:00 +00:00
];