diff options
-rw-r--r-- | appinfo/routes.php | 6 | ||||
-rw-r--r-- | js/app.js | 4 | ||||
-rw-r--r-- | tests/integration/features/notifications.feature | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/appinfo/routes.php b/appinfo/routes.php index 1352ec3..111821f 100644 --- a/appinfo/routes.php +++ b/appinfo/routes.php @@ -23,19 +23,19 @@ $application = new \OCA\Notifications\AppInfo\Application(); \OCP\API::register( 'get', - '/apps/notifications/v1/notifications', + '/apps/notifications/api/v1/notifications', [$application->getContainer()->query('EndpointController'), 'listNotifications'], 'notifications' ); \OCP\API::register( 'get', - '/apps/notifications/v1/notifications/{id}', + '/apps/notifications/api/v1/notifications/{id}', [$application->getContainer()->query('EndpointController'), 'getNotification'], 'notifications' ); \OCP\API::register( 'delete', - '/apps/notifications/v1/notifications/{id}', + '/apps/notifications/api/v1/notifications/{id}', [$application->getContainer()->query('EndpointController'), 'deleteNotification'], 'notifications' ); @@ -78,7 +78,7 @@ $notification.fadeOut(OC.menuSpeed); $.ajax({ - url: OC.linkToOCS('apps/notifications/v1', 2) + 'notifications/' + id + '?format=json', + url: OC.linkToOCS('apps/notifications/api/v1', 2) + 'notifications/' + id + '?format=json', type: 'DELETE', success: function(data) { self._removeNotification(id); @@ -281,7 +281,7 @@ fetch: function(success, failure){ var self = this; var request = $.ajax({ - url: OC.linkToOCS('/apps/notifications/v1', 2) + 'notifications?format=json', + url: OC.linkToOCS('apps/notifications/api/v1', 2) + 'notifications?format=json', type: 'GET' }); diff --git a/tests/integration/features/notifications.feature b/tests/integration/features/notifications.feature index cd16332..08b669a 100644 --- a/tests/integration/features/notifications.feature +++ b/tests/integration/features/notifications.feature @@ -5,7 +5,7 @@ Feature: notifications Scenario: Read notifications without Notifiers Given user "test1" exists Given As an "test1" - When sending "GET" to "/apps/notifications/v1/notifications" + When sending "GET" to "/apps/notifications/api/v1/notifications" # "204 No Content" - Because there is no notifier Then the HTTP status code should be "204" |