mirror of
https://github.com/dyzulk/trustlab-api.git
synced 2026-01-26 13:22:05 +07:00
chore: remove temporary debug routes and methods
This commit is contained in:
@@ -111,51 +111,4 @@ class NavigationController extends Controller
|
||||
return response()->json($menuGroups);
|
||||
}
|
||||
|
||||
public function debug()
|
||||
{
|
||||
// Simulate a User instance for admin view
|
||||
$user = new \App\Models\User(['first_name' => 'Debug', 'last_name' => 'Admin', 'role' => 'admin']);
|
||||
|
||||
// This is a bit of a hack since $user->isAdmin() might be a real method,
|
||||
// but for JSON structure debugging, we'll just replicate the logic or mock it.
|
||||
|
||||
$menuGroups = [];
|
||||
|
||||
// 1. Admin Management (Simulated Admin)
|
||||
$menuGroups[] = [
|
||||
'title' => 'Admin Management',
|
||||
'items' => [
|
||||
['name' => 'User Management', 'icon' => 'users', 'route' => '/admin/users'],
|
||||
['name' => 'Root CA Management', 'icon' => 'certificate', 'route' => '/admin/root-ca'],
|
||||
['name' => 'Ticket Management', 'icon' => 'support-ticket', 'route' => '/admin/tickets'],
|
||||
['name' => 'Legal Page Management', 'icon' => 'pages', 'route' => '/dashboard/admin/legal'],
|
||||
['name' => 'Inquiries', 'icon' => 'inbox', 'route' => '/dashboard/admin/inquiries'],
|
||||
['name' => 'SMTP Tester', 'icon' => 'smtp', 'route' => '/dashboard/admin/smtp-tester'],
|
||||
]
|
||||
];
|
||||
|
||||
// 2. Main Menu
|
||||
$mainItems = [
|
||||
['name' => 'Dashboard', 'icon' => 'dashboard', 'route' => '/dashboard'],
|
||||
['name' => 'Certificates', 'icon' => 'certificate', 'route' => '/dashboard/certificates'],
|
||||
['name' => 'API Keys', 'icon' => 'api-key', 'route' => '/dashboard/api-keys'],
|
||||
['name' => 'Support Tickets', 'icon' => 'support-ticket', 'route' => '/dashboard/support'],
|
||||
];
|
||||
|
||||
$menuGroups[] = [
|
||||
'title' => 'Menu',
|
||||
'items' => $mainItems,
|
||||
];
|
||||
|
||||
// 3. My Account
|
||||
$menuGroups[] = [
|
||||
'title' => 'My Account',
|
||||
'items' => [
|
||||
['name' => 'User Profile', 'icon' => 'user-profile', 'route' => '/dashboard/profile'],
|
||||
['name' => 'Account Settings', 'icon' => 'settings', 'route' => '/dashboard/settings'],
|
||||
]
|
||||
];
|
||||
|
||||
return response()->json($menuGroups);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user