diff options
author | Vitor Mattos <vitor@php.rio> | 2022-11-10 12:40:18 -0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2022-12-07 15:00:25 +0100 |
commit | 04a15956e28e05c971d600cd61c9c5ecfae7f699 (patch) | |
tree | 503e185be47d1377e8b701459ff28306f1ebfd10 /appinfo/routes | |
parent | 8c8ffbad2e0986b86edc219a3bbe04be4b16eb55 (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/routes')
-rw-r--r-- | appinfo/routes/routesAvatarController.php (renamed from appinfo/routes/routesGroupAvatarController.php) | 12 |
1 files changed, 6 insertions, 6 deletions
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], ], ]; |