欢迎各位兄弟 发布技术文章
这里的技术是共享的
$api->post('/api/aaaa','Api\ApiController@aaaa'); //这样子其实应该是可以的
$api = app('Dingo\Api\Routing\Router'); $api->version('v1', function ($api) { // $api->post('/users/login','App\Http\Controllers\Api\UserController@postLogin'); // $api->get('/users','App\Http\Controllers\Api\UserController@index'); $api->post('/htaccesss/post-disabled','App\Http\Controllers\Api\HtaccessController@postDisabled'); $api->post('/htaccesss/post-enabled','App\Http\Controllers\Api\HtaccessController@postEnabled'); $api->post('/login','App\Http\Controllers\Api\ApiController@login'); });