Skip to content

Commit

Permalink
fix: rest api namespace (#283)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnhooks authored Apr 19, 2023
1 parent ba9679f commit c070577
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion includes/restapi/class-notification-controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class Notification_Controller extends WP_REST_Controller {
*
* @type string
*/
const NAMESPACE = 'wp/v2';
const NAMESPACE = 'wp-notifications/v1';

/**
* Base for notification REST routes.
Expand Down
3 changes: 2 additions & 1 deletion src/scripts/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ export const STORE_NAMESPACE = /** @type {const} */ 'core/wp-notifications';
/**
* API_PATH WP Notification Feature rest api path.
*/
export const API_PATH = /** @type {const} */ '/wp/v2/notifications/';
export const API_PATH =
/** @type {const} */ '/wp-notifications/v1/notifications/';

/**
* The width of the notification hub.
Expand Down

0 comments on commit c070577

Please sign in to comment.