Edit app-9xzmfic2e4g1/src/db/api.ts via Editor
This commit is contained in:
parent
79212cbccd
commit
827a0a1f77
@ -120,6 +120,14 @@ const api = {
|
||||
return data;
|
||||
},
|
||||
|
||||
async getPlaceDetails(params: { place_id: string; name: string; category: string }) {
|
||||
const { data, error } = await supabase.functions.invoke('get-place-details', {
|
||||
body: params,
|
||||
});
|
||||
if (error) throw error;
|
||||
return data;
|
||||
},
|
||||
|
||||
getPhotoUrl(photoReference: string) {
|
||||
const { data } = supabase.storage.from('dummy').getPublicUrl('dummy'); // Just to get the base URL
|
||||
const baseUrl = data.publicUrl.split('/storage/v1')[0];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user