diff options
author | Mario Danic <mario@lovelyhq.com> | 2018-07-06 23:50:57 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2018-07-13 16:44:13 +0300 |
commit | 62b11f9a9f061a164b085e05aaf5ab98f212c057 (patch) | |
tree | 124bfe19913404d133e2b719d147f9aa7c0635b8 /appinfo/routes.php | |
parent | b061503d2c79ffb3fbf91477adc4cea3cca8eba7 (diff) |
Add support for backend favorites
Signed-off-by: Mario Danic <mario@lovelyhq.com>
Diffstat (limited to 'appinfo/routes.php')
-rw-r--r-- | appinfo/routes.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/appinfo/routes.php b/appinfo/routes.php index df2e44067..242cabb32 100644 --- a/appinfo/routes.php +++ b/appinfo/routes.php @@ -289,6 +289,25 @@ return [ 'token' => '^[a-z0-9]{4,30}$', ], ], + [ + 'name' => 'Room#setRoomAsFavourite', + 'url' => '/api/{apiVersion}/room/{token}/favourite', + 'verb' => 'POST', + 'requirements' => [ + 'apiVersion' => 'v1', + 'token' => '^[a-z0-9]{4,30}$', + ], + ], + [ + 'name' => 'Room#setRoomAsNotFavourite', + 'url' => '/api/{apiVersion}/room/{token}/favourite', + 'verb' => 'DELETE', + 'requirements' => [ + 'apiVersion' => 'v1', + 'token' => '^[a-z0-9]{4,30}$', + ], + ], + /** * Guest |