]> git.mxchange.org Git - friendica.git/blobdiff - static/routes.config.php
rename CSS attributes notify => notification
[friendica.git] / static / routes.config.php
index 05f2599561a90ed777aa9d672f85937d1b236ad5..f453856581c16558850d9d650a585d6816aa2b0a 100644 (file)
@@ -167,10 +167,20 @@ return [
        '/nodeinfo/{version}' => [Module\NodeInfo::class,        [R::GET]],
        '/nogroup'            => [Module\Group::class,           [R::GET]],
 
-       '/notify'         => [
-               '[/]'            => [Module\Notifications\Notify::class, [R::GET]],
-               '/view/{id:\d+}' => [Module\Notifications\Notify::class, [R::GET]],
-               '/mark/all'      => [Module\Notifications\Notify::class, [R::GET]],
+       '/notifications' => [
+               '/network[/json]'    => [Module\Notifications\Notifications::class, [R::GET, R::POST]],
+               '/system[/json]'     => [Module\Notifications\Notifications::class, [R::GET, R::POST]],
+               '/personal[/json]'   => [Module\Notifications\Notifications::class, [R::GET, R::POST]],
+               '/home[/json]'       => [Module\Notifications\Notifications::class, [R::GET, R::POST]],
+               '/intros[/json]'     => [Module\Notifications\Introductions::class, [R::GET, R::POST]],
+               '/intros/all[/json]' => [Module\Notifications\Introductions::class, [R::GET, R::POST]],
+               '/intros/{contact:\d+}[/json]' => [Module\Notifications\Introductions::class, [R::GET, R::POST]],
+       ],
+
+       '/notification'         => [
+               '[/]'            => [Module\Notifications\Notification::class, [R::GET]],
+               '/view/{id:\d+}' => [Module\Notifications\Notification::class, [R::GET]],
+               '/mark/all'      => [Module\Notifications\Notification::class, [R::GET]],
        ],
        '/objects/{guid}' => [Module\Objects::class, [R::GET]],