Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: rest api namespace #283

Merged
merged 1 commit into from
Apr 19, 2023
Merged
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
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