'agent','middleware' => ['auth:api']], function() { Route::get('/get_customer', [AgentActionApi::class, 'myCustomer'])->name('agent_get_customer'); Route::get('/agent_of_general', [AgentActionApi::class, 'agentByGeneral'])->name('agent_of_general'); }); Route::post('/agent/add_customer', [AgentActionApi::class, 'createCustomer'])->name('agent_add_customer');