diff --git a/src/Plugin.php b/src/Plugin.php index 1a226cc..bed64a1 100644 --- a/src/Plugin.php +++ b/src/Plugin.php @@ -43,12 +43,12 @@ public function routes(RouteBuilder $routes): void ['plugin' => 'ADmad/SocialAuth', 'controller' => 'Auth'], function (RouteBuilder $routes) { $routes->connect( - '/login/:provider', + '/login/{provider}', ['action' => 'login'], ['pass' => ['provider']] ); $routes->connect( - '/callback/:provider', + '/callback/{provider}', ['action' => 'callback'], ['pass' => ['provider']] );