【发布时间】:2016-08-31 04:56:38
【问题描述】:
嘿,我遇到了这个奇怪的错误
MethodNotAllowedHttpException
我在互联网上无论如何都找不到解决方案,请问有什么建议吗?
这里是:
Route::post('api/avatarDetails/{avId}', 'API\APIController@doAvatarDetails');
Route::get('api/avatarDetails', function() {
return Redirect::to('/')->with('failure', 'You lack the ability to do that young one.');
});
你去@Alexy
Route::get('/', function() {
return view('welcome');
});
【问题讨论】:
-
收到此错误消息时,您尝试使用哪个 URL?
-
api/avatarDetails尝试向其发布 avId 并从我的 jsonrpc 服务器返回 json 数据。