Skip to content

Commit 063f3df

Browse files
committed
Fix our UCP routing paths
Signed-off-by: Matt Friedman <maf675@gmail.com>
1 parent 5191a07 commit 063f3df

2 files changed

Lines changed: 18 additions & 15 deletions

File tree

config/routing.yml

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,3 @@
1-
phpbb_webpushnotifications_ucp_push_get_notification_controller:
2-
path: /push/notification
3-
defaults: { _controller: phpbb.wpn.ucp.controller.webpush:notification }
4-
5-
phpbb_webpushnotifications_ucp_push_worker_controller:
6-
path: /push/worker
7-
defaults: { _controller: phpbb.wpn.ucp.controller.webpush:worker }
8-
9-
phpbb_webpushnotifications_ucp_push_subscribe_controller:
10-
path: /push/subscribe
11-
defaults: { _controller: phpbb.wpn.ucp.controller.webpush:subscribe }
12-
13-
phpbb_webpushnotifications_ucp_push_unsubscribe_controller:
14-
path: /push/unsubscribe
15-
defaults: { _controller: phpbb.wpn.ucp.controller.webpush:unsubscribe }
1+
phpbb_ucp_routing:
2+
resource: wpn_ucp.yml
3+
prefix: /user

config/wpn_ucp.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
phpbb_webpushnotifications_ucp_push_get_notification_controller:
2+
path: /push/notification
3+
defaults: { _controller: phpbb.wpn.ucp.controller.webpush:notification }
4+
5+
phpbb_webpushnotifications_ucp_push_worker_controller:
6+
path: /push/worker
7+
defaults: { _controller: phpbb.wpn.ucp.controller.webpush:worker }
8+
9+
phpbb_webpushnotifications_ucp_push_subscribe_controller:
10+
path: /push/subscribe
11+
defaults: { _controller: phpbb.wpn.ucp.controller.webpush:subscribe }
12+
13+
phpbb_webpushnotifications_ucp_push_unsubscribe_controller:
14+
path: /push/unsubscribe
15+
defaults: { _controller: phpbb.wpn.ucp.controller.webpush:unsubscribe }

0 commit comments

Comments
 (0)