Nextcloud-App/appinfo/routes.php

22 lines
421 B
PHP
Raw 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' => '.+'],
],
[
'name' => 'ticket_api#fetch_chat',
'url' => '/api/v1/tickets/{id}/chat',
'verb' => 'GET',
],
],
2021-08-21 10:58:00 +00:00
];