public function routes()
    {
        Route::get('countries/{id}', function ($id) {
            $request = request();
            return CountryStore::country($id, $request);
        })->name('country');

        Route::get('countries', function () {
            $request = request();
            return CountryStore::countries($request);
        })->name('countries');

        Route::get('administrative_areas/{id}', function ($id) {
            $request = request();
            return CountryStore::administrativeArea($id, $request);
        })->name('administrative_area');

        Route::get('cities/{city_id}', function ($city_id) {
                $request = request();
                return CountryStore::city($city_id, $request);
        })->name('city');
    }
public function routes()
    {
        Route::get('countries/{id}', function ($id) {
            $request = request();
            return CountryStore::country($id, $request);
        })->name('country');

        Route::get('countries', function () {
            $request = request();
            return CountryStore::countries($request);
        })->name('countries');

        Route::get('administrative_areas/{id}', function ($id) {
            $request = request();
            return CountryStore::administrativeArea($id, $request);
        })->name('administrative_area');

        Route::get('cities/{city_id}', function ($city_id) {
                $request = request();
                return CountryStore::city($city_id, $request);
        })->name('city');
    }
public function routes ( ) { Route :: get ( 'countries/{id}' , function ( $ id ) { $ request = request ( ) ; return CountryStore :: country ( $ id , $ request ) ; } ) -> name ( 'country' ) ; Route :: get ( 'countries' , function ( ) { $ request = request ( ) ; return CountryStore :: countries ( $ request ) ; } ) -> name ( 'countries' ) ; Route :: get ( 'administrative_areas/{id}' , function ( $ id ) { $ request = request ( ) ; return CountryStore :: administrativeArea ( $ id , $ request ) ; } ) -> name ( 'administrative_area' ) ; Route :: get ( 'cities/{city_id}' , function ( $ city_id ) { $ request = request ( ) ; return CountryStore :: city ( $ city_id , $ request ) ; } ) -> name ( 'city' ) ; }
Set routes for country API

@return void
Set routes for country API