Skip to content

Dingo responding to configuration from Route::group #7

Closed
@mrtimp

Description

@mrtimp

After our testing last night I had the following defined in my routes.php file:

Route::group([ 'version' => 'v1', 'prefix' => 'api' ], function() {
Route::any('foo', function () {
return array("Hello" => "World");
});
});

When I did a composer update to pull in the latest version of Dingo I got a RuntimeException thrown from dingo/api/src/Routing/Router.php line 417:

There is no API collection for the version "v1"

Once I removed the Route::group composer would update correctly. Should Dingo ignore any parameters passed to a Route that isn't Route::api ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions