diff --git a/composer.json b/composer.json index d996cf0..9be88da 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "aat2703/laravel-weather", + "name": "quick-order/laravel-owm", "authors": [ { "name": "Andreas Aagaard", diff --git a/config/weather.php b/config/weather.php index d389546..869f30b 100644 --- a/config/weather.php +++ b/config/weather.php @@ -1,6 +1,5 @@ config('OWM_API_KEY'), - 'default_routes' => true + 'api_key' => config('OWM_API_KEY') ]; \ No newline at end of file diff --git a/routes/routes.php b/routes/routes.php deleted file mode 100644 index 605872b..0000000 --- a/routes/routes.php +++ /dev/null @@ -1,14 +0,0 @@ -group(function() { - - Route::get( - '', - function() { - return Weather::getWeather(request()->get('query')); - } - ); -}); diff --git a/src/WeatherServiceProvider.php b/src/WeatherServiceProvider.php index 6a75bb5..23944b4 100644 --- a/src/WeatherServiceProvider.php +++ b/src/WeatherServiceProvider.php @@ -14,10 +14,6 @@ public function boot() { ], 'weather-config' ); - - if (config('weather.default_routes')) { - $this->loadRoutesFrom(__DIR__ . '/../routes/routes.php'); - } } public function register() {