Skip to content

Commit

Permalink
Remove the default method in a route and add the post method to the a…
Browse files Browse the repository at this point in the history
…ttend route
  • Loading branch information
amieiro committed Feb 16, 2024
1 parent d21f915 commit 1560932
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wporg-gp-translation-events.php
Original file line number Diff line number Diff line change
Expand Up @@ -323,8 +323,8 @@ function () {
GP::$router->add( '/events?', array( 'WPORG_GP_Translation_Events_Route', 'events_list' ) );
GP::$router->add( '/events/new', array( 'WPORG_GP_Translation_Events_Route', 'events_create' ) );
GP::$router->add( '/events/edit/(\d+)', array( 'WPORG_GP_Translation_Events_Route', 'events_edit' ) );
GP::$router->add( '/events/attend/(\d+)', array( 'WPORG_GP_Translation_Events_Route', 'events_attend' ) );
GP::$router->add( '/events/my-events', array( 'WPORG_GP_Translation_Events_Route', 'events_user_created' ), 'get' );
GP::$router->add( '/events/attend/(\d+)', array( 'WPORG_GP_Translation_Events_Route', 'events_attend' ), 'post' );
GP::$router->add( '/events/my-events', array( 'WPORG_GP_Translation_Events_Route', 'events_user_created' ) );
GP::$router->add( '/events/([a-z0-9_-]+)', array( 'WPORG_GP_Translation_Events_Route', 'events_details' ) );

require_once __DIR__ . '/includes/class-wporg-gp-translation-events-event.php';
Expand Down

0 comments on commit 1560932

Please sign in to comment.