<?php

use App\Http\Controllers\Api\ApiBaseController;
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\Api\ExportController;
use App\Http\Controllers\Api\FiltersController;
use App\Http\Controllers\Api\ImportController;
use App\Http\Controllers\Api\RequestController;

/*
|--------------------------------------------------------------------------
| 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::get('imports', [ImportController::class, 'index'])->name('api.imports');
Route::get('exports', [ExportController::class, 'index'])->name('api.exports');
Route::get('groups', [FiltersController::class, 'groups']);
Route::get('categories', [FiltersController::class, 'categories']);
Route::get('other-filters', [FiltersController::class, 'otherFilters']);
// Route::post('requests', [RequestController::class, 'store']);
// Route::get('lines', [LineController::class, 'index']);

// Route::middleware('auth:sanctum')->get('/user', function (Request $request) {
//     return $request->user();
// });
