From 9b3aec91b7a951f15874a7d6a48d2eecfbad3330 Mon Sep 17 00:00:00 2001 From: MOHAMMED BOUBAZINE <39988497+Medboubazine@users.noreply.github.com> Date: Sun, 8 Nov 2020 23:37:25 +0100 Subject: [PATCH 1/2] Create Tracker.php --- src/Vendor/Laravel/Routes/Tracker.php | 57 +++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 src/Vendor/Laravel/Routes/Tracker.php diff --git a/src/Vendor/Laravel/Routes/Tracker.php b/src/Vendor/Laravel/Routes/Tracker.php new file mode 100644 index 00000000..29e940c7 --- /dev/null +++ b/src/Vendor/Laravel/Routes/Tracker.php @@ -0,0 +1,57 @@ +make('router'); + $router->group(['namespace' => $namespace], function () use ($prefix, $router, $filters) { + $router->group($filters, function () use ($prefix, $router) { + $router->group(['prefix' => $prefix], function ($router) { + $router->get('/', ['as' => 'tracker.stats.index', 'uses' => 'Stats@index']); + + $router->get('log/{uuid}', ['as' => 'tracker.stats.log', 'uses' => 'Stats@log']); + + $router->get('api/pageviews', ['as' => 'tracker.stats.api.pageviews', 'uses' => 'Stats@apiPageviews']); + + $router->get('api/pageviewsbycountry', ['as' => 'tracker.stats.api.pageviewsbycountry', 'uses' => 'Stats@apiPageviewsByCountry']); + + $router->get('api/log/{uuid}', ['as' => 'tracker.stats.api.log', 'uses' => 'Stats@apiLog']); + + $router->get('api/errors', ['as' => 'tracker.stats.api.errors', 'uses' => 'Stats@apiErrors']); + + $router->get('api/events', ['as' => 'tracker.stats.api.events', 'uses' => 'Stats@apiEvents']); + + $router->get('api/users', ['as' => 'tracker.stats.api.users', 'uses' => 'Stats@apiUsers']); + + $router->get('api/visits', ['as' => 'tracker.stats.api.visits', 'uses' => 'Stats@apiVisits']); + }); + }); + }); + } + + +} From 12edd50204b9b1f9faeed473d49884124630742c Mon Sep 17 00:00:00 2001 From: MOHAMMED BOUBAZINE <39988497+Medboubazine@users.noreply.github.com> Date: Sun, 8 Nov 2020 23:41:30 +0100 Subject: [PATCH 2/2] Update Tracker.php --- src/Vendor/Laravel/Routes/Tracker.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Vendor/Laravel/Routes/Tracker.php b/src/Vendor/Laravel/Routes/Tracker.php index 29e940c7..4ae28acf 100644 --- a/src/Vendor/Laravel/Routes/Tracker.php +++ b/src/Vendor/Laravel/Routes/Tracker.php @@ -1,9 +1,9 @@