33 lines
1.3 KiB
PHP
33 lines
1.3 KiB
PHP
<?php
|
|
|
|
load([
|
|
"ProjectPage" => "models/ProjectPage.php",
|
|
], __DIR__);
|
|
|
|
F::loadClasses([
|
|
// Own classes
|
|
"adrienpayet\\notifications\\Notification" => __DIR__ . "/src/Notification.php",
|
|
"adrienpayet\\notifications\\NotificationsPage" => __DIR__ . "/src/NotificationsPage.php",
|
|
|
|
// Shared classes
|
|
"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",
|
|
]);
|
|
|
|
|
|
Kirby::plugin("adrienpayet/pdc-notifications", [
|
|
"routes" => [
|
|
require(__DIR__ . "/routes/readAll.php"),
|
|
require(__DIR__ . "/routes/read.php")
|
|
],
|
|
"userMethods" => [
|
|
// "sendNotification" => require(__DIR__ . "/user-methods/send.php"),
|
|
"deleteNotification" => require(__DIR__ . "/user-methods/delete.php"),
|
|
"readNotification" => require(__DIR__ . "/user-methods/read.php"),
|
|
"readAllNotifications" => require(__DIR__ . "/user-methods/readAll.php")
|
|
]
|
|
]);
|