Add sightings page + report form, fix stream API mapping, add nav link
This commit is contained in:
+13
@@ -60,6 +60,18 @@ export interface Event {
|
||||
capacity?: number;
|
||||
}
|
||||
|
||||
export interface Sighting {
|
||||
id: string;
|
||||
species: string;
|
||||
gps_lat: number;
|
||||
gps_lng: number;
|
||||
photo_url?: string;
|
||||
description: string;
|
||||
verified: boolean;
|
||||
created_at: string;
|
||||
reporter?: { id: string; name: string };
|
||||
}
|
||||
|
||||
export interface Burrow {
|
||||
id: string;
|
||||
lat: number;
|
||||
@@ -81,4 +93,5 @@ export const api = {
|
||||
body: JSON.stringify({ email }),
|
||||
}),
|
||||
getBurrows: () => apiFetch<Burrow[]>('/api/burrows'),
|
||||
getSightings: () => apiFetch<Sighting[]>('/api/sightings'),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user