This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import type { NetObject } from '../types';
|
||||
|
||||
const API_BASE = '/api/v1';
|
||||
|
||||
export async function fetchObjects(): Promise<NetObject[]> {
|
||||
// Mock data for now
|
||||
return [
|
||||
{ id: '1', name: 'Site HQ', slug: 'site-hq', type: 'site', status: 'active' },
|
||||
{ id: '2', name: 'Rack A', slug: 'rack-a', type: 'rack', status: 'active' },
|
||||
{ id: '3', name: 'Server Proxmox', slug: 'server-proxmox', type: 'physical_host', vendor: 'Dell', model: 'R730', status: 'active' },
|
||||
{ id: '4', name: 'Switch Core', slug: 'switch-core', type: 'switch', vendor: 'Mikrotik', status: 'active' },
|
||||
{ id: '5', name: 'Firewall Edge', slug: 'firewall-edge', type: 'firewall', status: 'active' },
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user