Skip to content

Instantly share code, notes, and snippets.

Created May 26, 2023 11:40
What would you like to do?
API routes file (routes/api.php)
use App\Http\Controllers\GetBookByIsbnController;
use App\Http\Controllers\GetBooksController;
use Illuminate\Support\Facades\Route;
Route::get('/books', GetBooksController::class);
Route::get('/books/{isbn}', GetBookByIsbnController::class)->where('isbn', '[0-9]{10,13}');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment