refactor deleteNotification method
This commit is contained in:
parent
82f4aaf904
commit
fe56312f20
6 changed files with 70 additions and 33 deletions
|
|
@ -1,10 +1,11 @@
|
|||
<?php
|
||||
|
||||
Kirby::plugin('adrienpayet/pdc-notifications', [
|
||||
'routes' => [
|
||||
require(__DIR__ . '/routes/mark-as-read.php'),
|
||||
],
|
||||
// 'routes' => [
|
||||
// require(__DIR__ . '/routes/mark-as-read.php'),
|
||||
// ],
|
||||
'userMethods' => [
|
||||
'sendNotification' => require(__DIR__ . '/user-methods/send.php')
|
||||
'sendNotification' => require(__DIR__ . '/user-methods/send.php'),
|
||||
'deleteNotification' => require(__DIR__ . '/user-methods/delete.php')
|
||||
]
|
||||
]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue