8000 METHOD NOT ALLOWED · Issue #139 · chrisbjr/api-guard · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
METHOD NOT ALLOWED #139
Open
Open
@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');

});