Skip to content

METHOD NOT ALLOWED #139

@hqtrung

Description

@hqtrung

Look like Api-Guard doesn't work with dingo/api 's route.

/** this route works **/
Route::get('protected/{id}', '\App\Http\Controllers\GetCouponController@forCustomer');

$api = app('Dingo\Api\Routing\Router');

$api->version('v1', function ($api) {
/** this route give METHOD-NOT-ALLOWED **/
$api->get('get_coupon/customer/{id}', 'App\Http\Controllers\GetCouponController@forCustomer');

});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions