<?php

use Illuminate\Support\Facades\Route;
use App\Http\Controllers\TokenController;
use App\Http\Controllers\TicketController;

// public route
// Route::put('/estimate/toInvoice/{estimate}', [EstimateController::class, 'convertToInvoice']);

Route::group([  
        'prefix'=>'/support',
        // 'middleware'=>['auth']
    ], function(){

    Route::get('/dashboard', [TicketController::class, 'dashboard']);
    Route::post('/token', [TokenController::class, 'newToken'])->name('new-token');
    Route::post('/ticket', [TicketController::class, 'newTicket'])->name('new-ticket');
});


// // NOTE API Routes

// Route::group(['prefix'=>'api', 'middleware'=>'auth:sanctum'], function(){
//     // NOTE TITLE ROUTES
//     Route::post('estimate/getProduct', [EstimateController::class, 'getProduct']);
//     Route::post('estimate/getCustomers', [EstimateController::class, 'getCustomers']);
//     Route::post('estimate/getestimateProducts', [EstimateController::class, 'getestimateProducts']);
// });

?>