diff options
author | Vitor Mattos <vitor@php.rio> | 2022-11-10 13:30:55 -0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2022-12-07 15:00:26 +0100 |
commit | eb0098c2e3db6f242465e3c22a65e5d39985bad8 (patch) | |
tree | 86015363b0ab556ad709c6494c5c94e117fbb8db /appinfo | |
parent | 04a15956e28e05c971d600cd61c9c5ecfae7f699 (diff) |
* Endpoint to get dark avatar to dark theme
* Fix routes names
Signed-off-by: Vitor Mattos <vitor@php.rio>
Diffstat (limited to 'appinfo')
-rw-r--r-- | appinfo/routes/routesAvatarController.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/appinfo/routes/routesAvatarController.php b/appinfo/routes/routesAvatarController.php index a0d05e47a..608ab53fa 100644 --- a/appinfo/routes/routesAvatarController.php +++ b/appinfo/routes/routesAvatarController.php @@ -31,10 +31,12 @@ $requirements = [ return [ 'ocs' => [ /** @see \OCA\Talk\Controller\AvatarController::uploadAvatar() */ - ['name' => 'Avatar#uploadAvatar', 'url' => '/api/{apiVersion}/group-avatar/{token}', 'verb' => 'POST', 'requirements' => $requirements], + ['name' => 'Avatar#uploadAvatar', 'url' => '/api/{apiVersion}/room/{token}/avatar', 'verb' => 'POST', 'requirements' => $requirements], /** @see \OCA\Talk\Controller\AvatarController::getAvatar() */ - ['name' => 'Avatar#getAvatar', 'url' => '/api/{apiVersion}/group-avatar/{token}', 'verb' => 'GET', 'requirements' => $requirements], + ['name' => 'Avatar#getAvatar', 'url' => '/api/{apiVersion}/room/{token}/avatar', 'verb' => 'GET', 'requirements' => $requirements], + /** @see \OCA\Talk\Controller\AvatarController::getAvatar() */ + ['name' => 'Avatar#getAvatarDark', 'url' => '/api/{apiVersion}/room/{token}/avatar/dark', 'verb' => 'GET', 'requirements' => $requirements], /** @see \OCA\Talk\Controller\AvatarController::deleteAvatar() */ - ['name' => 'Avatar#deleteAvatar', 'url' => '/api/{apiVersion}/group-avatar/{token}', 'verb' => 'DELETE', 'requirements' => $requirements], + ['name' => 'Avatar#deleteAvatar', 'url' => '/api/{apiVersion}/room/{token}/avatar', 'verb' => 'DELETE', 'requirements' => $requirements], ], ]; |