mirror of
https://git.steelants.cz/SH/PHP_SMART_HOME_V3.git
synced 2026-10-11 17:54:34 +00:00
Notifications
This commit is contained in:
1 parent
a3a87d39d2
commit
64b50ead9f
2 files changed
+10
No files matched your search
@@ -34,4 +34,13 @@ class UsersApi extends ApiController{
|
||||
}
|
||||
$this->response(['value'=>'OK']);
|
||||
}
|
||||
|
||||
public function subscribe(){
|
||||
//$this->requireAuth();
|
||||
|
||||
$subscriptionToken = $this->input['token'];
|
||||
$subscriptionUserId = $this->input['user_id'];
|
||||
NotificationManager::addSubscriber($subscriptionUserId, $subscriptionToken);
|
||||
$this->response(['value'=>'OK']);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user