summaryrefslogtreecommitdiffstats
path: root/appinfo
diff options
context:
space:
mode:
authorVitor Mattos <vitor@php.rio>2022-11-10 12:40:18 -0300
committerJoas Schilling <coding@schilljs.com>2022-12-07 15:00:25 +0100
commit04a15956e28e05c971d600cd61c9c5ecfae7f699 (patch)
tree503e185be47d1377e8b701459ff28306f1ebfd10 /appinfo
parent8c8ffbad2e0986b86edc219a3bbe04be4b16eb55 (diff)
* Rename from GroupAvatar to Avatar
* Add capability * Add documentatio * Change type of exception * Fix permissions to access endpoints * Implement cache to images Signed-off-by: Vitor Mattos <vitor@php.rio>
Diffstat (limited to 'appinfo')
-rw-r--r--appinfo/routes.php2
-rw-r--r--appinfo/routes/routesAvatarController.php (renamed from appinfo/routes/routesGroupAvatarController.php)12
2 files changed, 7 insertions, 7 deletions
diff --git a/appinfo/routes.php b/appinfo/routes.php
index a16a54df2..88554d8ce 100644
--- a/appinfo/routes.php
+++ b/appinfo/routes.php
@@ -25,6 +25,7 @@ declare(strict_types=1);
return array_merge_recursive(
+ include(__DIR__ . '/routes/routesAvatarController.php'),
include(__DIR__ . '/routes/routesBreakoutRoomController.php'),
include(__DIR__ . '/routes/routesCallController.php'),
include(__DIR__ . '/routes/routesChatController.php'),
@@ -43,5 +44,4 @@ return array_merge_recursive(
include(__DIR__ . '/routes/routesSettingsController.php'),
include(__DIR__ . '/routes/routesSignalingController.php'),
include(__DIR__ . '/routes/routesTempAvatarController.php'),
- include(__DIR__ . '/routes/routesGroupAvatarController.php'),
);
diff --git a/appinfo/routes/routesGroupAvatarController.php b/appinfo/routes/routesAvatarController.php
index 970190050..a0d05e47a 100644
--- a/appinfo/routes/routesGroupAvatarController.php
+++ b/appinfo/routes/routesAvatarController.php
@@ -30,11 +30,11 @@ $requirements = [
return [
'ocs' => [
- /** @see \OCA\Talk\Controller\GroupAvatarController::postAvatar() */
- ['name' => 'GroupAvatar#postAvatar', 'url' => '/api/{apiVersion}/group-avatar/{token}', 'verb' => 'POST', 'requirements' => $requirements],
- /** @see \OCA\Talk\Controller\GroupAvatarController::getAvatar() */
- ['name' => 'GroupAvatar#getAvatar', 'url' => '/api/{apiVersion}/group-avatar/{token}', 'verb' => 'GET', 'requirements' => $requirements],
- /** @see \OCA\Talk\Controller\GroupAvatarController::deleteAvatar() */
- ['name' => 'GroupAvatar#deleteAvatar', 'url' => '/api/{apiVersion}/group-avatar/{token}', 'verb' => 'DELETE', 'requirements' => $requirements],
+ /** @see \OCA\Talk\Controller\AvatarController::uploadAvatar() */
+ ['name' => 'Avatar#uploadAvatar', 'url' => '/api/{apiVersion}/group-avatar/{token}', 'verb' => 'POST', 'requirements' => $requirements],
+ /** @see \OCA\Talk\Controller\AvatarController::getAvatar() */
+ ['name' => 'Avatar#getAvatar', 'url' => '/api/{apiVersion}/group-avatar/{token}', 'verb' => 'GET', 'requirements' => $requirements],
+ /** @see \OCA\Talk\Controller\AvatarController::deleteAvatar() */
+ ['name' => 'Avatar#deleteAvatar', 'url' => '/api/{apiVersion}/group-avatar/{token}', 'verb' => 'DELETE', 'requirements' => $requirements],
],
];