2023-03-21 19:54:30 +01:00
|
|
|
<?php
|
|
|
|
|
2023-03-25 11:02:47 +01:00
|
|
|
use App\Http\Controllers\DeviceController;
|
2023-03-21 19:54:30 +01:00
|
|
|
use Illuminate\Support\Facades\Route;
|
2023-03-23 21:50:31 +01:00
|
|
|
use App\Models\Device;
|
2023-03-21 19:54:30 +01:00
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Web Routes
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Here is where you can register web routes for your application. These
|
|
|
|
| routes are loaded by the RouteServiceProvider and all of them will
|
|
|
|
| be assigned to the "web" middleware group. Make something great!
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
Route::get('/', function () {
|
|
|
|
return view('welcome');
|
|
|
|
});
|
2023-03-23 12:25:56 +01:00
|
|
|
|
2023-03-25 11:02:47 +01:00
|
|
|
Route::get('/devices', [DeviceController::class, 'index']);
|
2023-03-23 12:25:56 +01:00
|
|
|
|
2023-03-25 11:02:47 +01:00
|
|
|
Route::get('/devices/{device}', [DeviceController::class, 'show']);
|