@ -13,7 +13,8 @@ class ApiController extends Controller
*/
public function index()
{
return view('api::index');
return response()->json(['message' => 'Inline route test']);
}
/**
@ -3,6 +3,6 @@
use Illuminate\Support\Facades\Route;
use Modules\Api\Http\Controllers\ApiController;
Route::middleware(['auth:sanctum'])->prefix('v1')->group(function () {
Route::apiResource('apis', ApiController::class)->names('api');
Route::middleware(['auth:api'])->group(function () {
Route::get('apis-test', [ApiController::class, 'index'])->name('api.test');
});