我的项目名称是admin-api,我的域名没有指向public文件夹,指向的是项目文件夹的上级文件夹,我访问
http://pachong.test/admin-api/public
这个域名可以访问到laravel的默认首页。
我添加了一个product-temp的api接口,我访问这个域名:
http://pachong.test/admin-api/public/api/product-temp
提示我:
No input file specified.
我的地址写错了么?怎么访问我的接口?
我拿get路由试还是不行:
Route::get('/hello', function (){
return response()->json(['hello'=>'world']);
});
访问
http://pachong.test/admin-api/public/api/hello
还是没反应
海绵宝宝撒