以下 Laravel 路由配置代码,若相关的控制类以及方法,模板文件都存在,正确的是()
A. Route::any([“get”, “post”], “/user/id”, function($id){ return “user ”.$id;});
B. Route::post(“/login”, “UserController@login”);
C. Route::get(“/index”, function(){ return view(“index”);})
D. Route::match([“get”, “post”], “/reg”, “UserController@regist”);