FleetCart/Modules/Api/Routes/public.php

15 lines
509 B
PHP
Raw Normal View History

<?php
use Illuminate\Support\Facades\Route;
use Modules\Api\Http\Controllers\ExportProductController;
use Modules\Api\Http\Controllers\ImportProductController;
Route::group(['prefix' => 'export', 'middleware' => 'api_auth'], function () {
Route::get('products', ExportProductController::class)->name('api.export.products');
});
Route::group(['prefix' => 'import', 'middleware' => 'api_auth'], function () {
Route::post('products', ImportProductController::class)->name('api.import.products');
});