2024-10-29 11:35:48 +01:00
|
|
|
<?php
|
|
|
|
|
|
2024-11-22 07:53:43 +01:00
|
|
|
load([
|
|
|
|
|
'ProjectPage' => 'models/ProjectPage.php',
|
|
|
|
|
], __DIR__);
|
|
|
|
|
|
2024-12-18 13:56:21 +01:00
|
|
|
F::loadClasses([
|
|
|
|
|
'adrienpayet\\notifications\\Notification' => __DIR__ . '/src/Notification.php',
|
2024-12-18 15:05:42 +01:00
|
|
|
'adrienpayet\\D2P\\data\\Position' => __DIR__ . '/../classes/Position.php',
|
|
|
|
|
'adrienpayet\\D2P\data\Author' => __DIR__ . '/../classes/Author.php',
|
|
|
|
|
'adrienpayet\\D2P\\data\\location\\Location' => __DIR__ . '/../classes/location/Location.php',
|
|
|
|
|
'adrienpayet\\D2P\\data\\location\\PageDetails' => __DIR__ . '/../classes/location/PageDetails.php',
|
|
|
|
|
'adrienpayet\\D2P\\data\\location\\ProjectDetails' => __DIR__ . '/../classes/location/ProjectDetails.php',
|
|
|
|
|
'adrienpayet\\D2P\\data\\location\\FileDetails' => __DIR__ . '/../classes/location/FileDetails.php',
|
2024-12-18 13:56:21 +01:00
|
|
|
]);
|
|
|
|
|
|
|
|
|
|
|
2024-10-29 11:35:48 +01:00
|
|
|
Kirby::plugin('adrienpayet/pdc-notifications', [
|
2024-11-18 13:45:40 +01:00
|
|
|
'routes' => [
|
|
|
|
|
require(__DIR__ . '/routes/readAll.php'),
|
2024-12-16 18:14:14 +01:00
|
|
|
require(__DIR__ . '/routes/read.php')
|
2024-11-18 13:45:40 +01:00
|
|
|
],
|
2024-10-30 10:56:11 +01:00
|
|
|
'userMethods' => [
|
2024-11-17 12:01:20 +01:00
|
|
|
'sendNotification' => require(__DIR__ . '/user-methods/send.php'),
|
2024-11-18 09:36:15 +01:00
|
|
|
'deleteNotification' => require(__DIR__ . '/user-methods/delete.php'),
|
2024-11-18 13:45:40 +01:00
|
|
|
'readNotification' => require(__DIR__ . '/user-methods/read.php'),
|
|
|
|
|
'readAllNotifications' => require(__DIR__ . '/user-methods/readAll.php')
|
2024-10-29 11:35:48 +01:00
|
|
|
]
|
|
|
|
|
]);
|