<?php

use App\Models\DevicePort;
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\PortController;
use App\Http\Controllers\DashboardController;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/




Route::get('/device', [PortController::class, 'index']);
Route::get('/dashboard', [DashboardController::class, 'index']);
Route::get('/equipment/{id}', [DashboardController::class, 'show'])->name('equipment.show'); // serves view
Route::get('/equipment/json/{id}', [DashboardController::class, 'jsonData'])->name('equipment.json'); // serves JSON data







