File size: 268 Bytes
f5071ca
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
export const fetchSpots = (data) => {
    return $.ajax({
        method: "GET",
        url: `/api/spots?bounds=${JSON.stringify(data.bounds)}`
    });
}

export const fetchSpot = id => (
    $.ajax({
        method: 'Get',
        url: `/api/spots/${id}`
    })
);