在Laravel 5.3中,API路由被移动到API中.php文件.但是如何在api中调用路由呢.php文件?我试图创建一条这样的路由:
Route::get('/test',function(){
return "ok";
});
I tried the following URLs but both returned the NotFoundHttpException exception:
http://localhost:8080/test/public/test
http://localhost:8080/test/public/api/test
如何调用此API路由?