Added splash page
This commit is contained in:
@@ -2,9 +2,8 @@ import { computed } from 'vue'
|
||||
import { useApiResource } from '@/Composables/useApiResource'
|
||||
import type { Flight } from '@/Types/types'
|
||||
|
||||
export function useFlights(url: string, departedOnly: boolean = false) {
|
||||
const requestUrl = departedOnly ? `${url}/departed` : url
|
||||
const { data, loading, error } = useApiResource<Flight[]>(requestUrl)
|
||||
export function useFlights(url: string) {
|
||||
const { data, loading, error } = useApiResource<Flight[]>(url)
|
||||
|
||||
const flights = computed(() => data.value ?? [])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user