add notifications plugin + created reply comment route
This commit is contained in:
parent
b332c6d871
commit
c3860d4a38
6 changed files with 53 additions and 5 deletions
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
|
||||
return [
|
||||
'pattern' => '(:all)create-comment.json',
|
||||
'pattern' => '(:all)update-comment.json',
|
||||
'method' => 'POST',
|
||||
'action' => function () {
|
||||
$json = file_get_contents('php://input');
|
||||
|
|
@ -21,7 +21,7 @@ return [
|
|||
'comments' => $comments
|
||||
]);
|
||||
|
||||
// $user->sendNotification('comments', $comments[$data->id]);
|
||||
$user->sendNotification('comments', $comments[$data->id]);
|
||||
|
||||
return getFileData($newFile);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue