<?php

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
//use Modules\Delivery\app\Http\Controllers\Api\v1\PaczkomatApiController;
//use Modules\Delivery\app\Http\Controllers\Api\v1\DPDApiController;
//use Modules\Delivery\app\Http\Controllers\Api\v1\inPostApiController;
use Modules\Delivery\app\Http\Controllers\Api\v1\DeliveryApiController;
/*
    |--------------------------------------------------------------------------
    | API Routes
    |--------------------------------------------------------------------------
    |
    | Here is where you can register API routes for your application. These
    | routes are loaded by the RouteServiceProvider within a group which
    | is assigned the "api" middleware group. Enjoy building your API!
    |
*/

Route::middleware(['auth:api','administrator'])->group(function () {
    //===================== delivery api routes ========================== //
Route::get('/delivery',[DeliveryApiController::class,'index'])->name('delivery.index');
// ========================= paczkomat api routes ================================ //
   // Route::post('/paczkomat',[PaczkomatApiController::class,'store'])->name('paczkomat.store');
   // Route::put('/paczkomat/{id}',[PaczkomatApiController::class,'update'])->name('paczkomat.update');
    //Route::delete('/paczkomat/{id}',[PaczkomatApiController::class,'destroy'])->name('paczkomat.destroy');
   // Route::put('/paczkomat/inactive/{id}',[PaczkomatApiController::class,'inactive'])->name('paczkomat.inactive');
   // Route::put('/paczkomat/active/{id}',[PaczkomatApiController::class,'active'])->name('paczkomat.active');
   // Route::get('/getPaczkomatWithActivedStatus',[PaczkomatApiController::class,'getPaczkomatWithActivedStatus'])->name('paczkomat.getPaczkomatWithActivedStatus');

    // ============================== dpd api route ========================= //
   // Route::post('/dpd',[DPDApiController::class,'store'])->name('dpd.store');
   // Route::put('/dpd/{id}',[DPDApiController::class,'update'])->name('dpd.update');
   // Route::delete('/dpd/{id}',[DPDApiController::class,'destroy'])->name('dpd.destroy');
   // Route::put('/dpd/inactive/{id}',[DPDApiController::class,'inactive'])->name('dpd.inactive');
   // Route::put('/dpd/active/{id}',[DPDApiController::class,'active'])->name('dpd.active');
   // Route::get('/getDPDWithActivedStatus',[DPDApiController::class,'getDPDWithActivedStatus'])->name('dpd.getDPDWithActivedStatus');

   // ============================== inpost api route ========================= //
    //Route::post('/inpost',[inPostApiController::class,'store'])->name('inpost.store');
   // Route::put('/inpost/{id}',[inPostApiController::class,'update'])->name('inpost.update');
   // Route::delete('/inpost/{id}',[inPostApiController::class,'destroy'])->name('inpost.destroy');
   // Route::put('/inpost/inactive/{id}',[inPostApiController::class,'inactive'])->name('inpost.inactive');
   // Route::put('/inpost/active/{id}',[inPostApiController::class,'active'])->name('inpost.active');
   // Route::get('/getinPostWithActivedStatus',[inPostApiController::class,'getinPostWithActivedStatus'])->name('inpost.getinPostWithActivedStatus');

});

// ================= paczkomat api routes ============== //
    //Route::get('/paczkomat',[PaczkomatApiController::class,'index'])->name('paczkomat.index');
    //Route::get('/paczkomat/{id}',[PaczkomatApiController::class,'show'])->name('paczkomat.show');
// ============================== dpd api route ========================= //   
    //Route::get('/dpd',[DPDApiController::class,'index'])->name('dpd.index');
    //Route::get('/dpd/{id}',[DPDApiController::class,'show'])->name('dpd.show');
// ============================== inpost api route ========================= //   
    //Route::get('/inpost',[inPostApiController::class,'index'])->name('inpost.index');
    //Route::get('/inpost/{id}',[inPostApiController::class,'show'])->name('inpost.show');   