mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-05 02:14:05 +00:00
add roadtrip warning areas and tidy driving settings
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import { roadtripHazardsSchema } from '@trek/shared'
|
||||
import { apiClient } from '../api/client'
|
||||
|
||||
export const roadtripHazardsRepo = {
|
||||
async read(tripId: number, signal: AbortSignal) {
|
||||
const fetched = await apiClient.get(`/trips/${tripId}/roadtrip/hazards`, { signal })
|
||||
return roadtripHazardsSchema.parse(fetched.data)
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user