Nextcloud-App/appinfo/routes.php
Ben 940c7bed6e
Start implementing matrix chat integration
Implement auto-login for element-web
2022-04-30 14:52:25 +02:00

22 lines
421 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' => '.+'],
],
[
'name' => 'ticket_api#fetch_chat',
'url' => '/api/v1/tickets/{id}/chat',
'verb' => 'GET',
],
],
];