Files
NetMapper2026/frontend/src/lib/api.ts
T

15 lines
688 B
TypeScript
Raw Normal View History

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' },
];
}