<?php

use App\Http\Controllers\Medicine\OrderController;
use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| Staff Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider and all of them will
| be assigned to the "api" middleware group. Make something great!
|
| Route prefix "api/staff"
*/
/** Order */
Route::get('order/search_customer', [OrderController::class, 'search_customer']);
Route::get('order/search_medicine', [OrderController::class, 'search_medicine']);
Route::resource('order', OrderController::class)->except(['create', 'destroy']);
