Channel list working, url generation, just need posting working now - Update dependency to Nextcloud 33 and add `spreed` dependency - Change webhook route from `/webhook` to `/bot-webhook` - Add `NavigationProvider` to add app to admin settings menu - Refactor `TalkService` to query Talk DB directly for room listing (public channels) - Update `postToRoom` to use Talk Chat API with Basic Auth for `talk-bot` user - Add debug helper methods to `TalkService` for room debugging - Enhance `debug` endpoint with detailed system and Talk configuration info - Update admin settings UI with "Default Sender Name" field and improved room selection - Add localization strings to admin settings - Update documentation (`INSTALL.md`, `README.md`) for new route and bot admin requirement - Improve `getBaseUrl` logic to prioritize `trusted_domains` for Docker compatibility
33 lines
743 B
PHP
33 lines
743 B
PHP
<?php
|
|
|
|
return [
|
|
'routes' => [
|
|
[
|
|
'name' => 'webhook#receive',
|
|
'url' => '/bot-webhook/{roomToken}/{token}',
|
|
'verb' => 'POST',
|
|
],
|
|
[
|
|
'name' => 'webhook#saveConfig',
|
|
'url' => '/save-config',
|
|
'verb' => 'POST',
|
|
],
|
|
[
|
|
'name' => 'webhook#getRooms',
|
|
'url' => '/rooms',
|
|
'verb' => 'GET',
|
|
],
|
|
[
|
|
'name' => 'webhook#saveBotPassword',
|
|
'url' => '/save-bot-password',
|
|
'verb' => 'POST',
|
|
],
|
|
[
|
|
'name' => 'webhook#debug',
|
|
'url' => '/debug',
|
|
'verb' => 'GET',
|
|
'type' => 'noCsrf',
|
|
],
|
|
],
|
|
];
|