as('mqtt.')->group(function () { // 登录 Route::post('authentication', [MqttAuthController::class, 'authentication'])->name('authentication'); // 授权 Route::post('authorization', [MqttAuthController::class, 'authorization'])->name('authorization'); }); // Modules Route::get('modules', [ModuleController::class, 'index'])->name('modules.index'); Route::get('modules/{module}', [ModuleController::class, 'show'])->name('modules.show'); Route::resource('users', UserController::class)->only(['index', 'show']); Route::get('token/{token}', [UserController::class, 'auth']);