From 213dd0bbea9a22b89368028c7dc2903dfcfcb11a Mon Sep 17 00:00:00 2001 From: Wisdom Ebong Date: Mon, 24 May 2021 10:07:43 +0100 Subject: [PATCH] chore: update route.php --- routes/api.php | 7 ------- routes/route.php | 7 +++++++ src/GmailServiceProvider.php | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) delete mode 100644 routes/api.php create mode 100644 routes/route.php diff --git a/routes/api.php b/routes/api.php deleted file mode 100644 index 37cb757..0000000 --- a/routes/api.php +++ /dev/null @@ -1,7 +0,0 @@ -group([], function () use ($router) { - $router->get('gmail/initialize', 'GmailController@initialize'); - $router->post('gmail/authorize', 'GmailController@authorize'); - $router->post('gmail/unauthorize', 'GmailController@unauthorize'); -}); diff --git a/routes/route.php b/routes/route.php new file mode 100644 index 0000000..61ca80e --- /dev/null +++ b/routes/route.php @@ -0,0 +1,7 @@ +group([], function () use ($router) { + $router->get('plugins/gmail/initialize', 'GmailController@initialize'); + $router->post('plugins/gmail/authorize', 'GmailController@authorize'); + $router->post('plugins/gmail/unauthorize', 'GmailController@unauthorize'); +}); diff --git a/src/GmailServiceProvider.php b/src/GmailServiceProvider.php index a250eb7..5aac0c6 100644 --- a/src/GmailServiceProvider.php +++ b/src/GmailServiceProvider.php @@ -61,7 +61,7 @@ function ($user, $config = null) $this->app->router->group([ 'namespace' => 'Ushahidi\Gmail' ], function($router) { - require __DIR__.'../../routes/api.php'; + require __DIR__.'../../routes/route.php'; }); }