Skip to content
Open

Apiv2 #153

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 37 additions & 4 deletions appinfo/routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,41 @@
],

'routes' => [
['name' => 'NotificationOptions#getNotificationOptions', 'url' => '/settings/personal/notifications/options', 'verb' => 'GET'],
['name' => 'NotificationOptions#setNotificationOptions', 'url' => '/settings/personal/notifications/options', 'verb' => 'PUT'],
['name' => 'NotificationOptions#setNotificationOptionsPartial', 'url' => '/settings/personal/notifications/options', 'verb' => 'PATCH'],
],
[
'name' => 'NotificationOptions#getNotificationOptions',
'url' => '/settings/personal/notifications/options',
'verb' => 'GET'
],
[
'name' => 'NotificationOptions#setNotificationOptions',
'url' => '/settings/personal/notifications/options',
'verb' => 'PUT'
],
[
'name' => 'NotificationOptions#setNotificationOptionsPartial',
'url' => '/settings/personal/notifications/options',
'verb' => 'PATCH'
],

[
'name' => 'EndpointV2#listNotifications',
'url' => '/api/v2/notifications',
'verb' => 'GET'
],
[
'name' => 'EndpointV2#getNotification',
'url' => '/api/v2/notifications/{id}',
'verb' => 'GET'
],
[
'name' => 'EndpointV2#deleteNotification',
'url' => '/api/v2/notifications/{id}',
'verb' => 'DELETE'
],
[
'name' => 'EndpointV2#getLastNotificationId',
'url' => '/api/v2/tracker/notifications/polling',
'verb' => 'GET'
],
]
];
8 changes: 8 additions & 0 deletions css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@
font-size: 16px;
}

.notification-container .notification-controls {
text-align: center;
}

.notification-container .notification-controls button {
display: inline;
}

/* Fill width on mobile */
@media (max-width: 500px) {
.notification-container {
Expand Down
Loading