Currently there are 2 endpoints
method: get returns: array holding arrays of string(stocking time)
example: fetch('./shasta').then((res) => {
let times = []
let data = res.json()
data.times.forEach(time => {
time = time.join()
times.push(time)
})
})
method: get returns: array of objects(contain county, lake, fish)
example: fetch('./fishwebscrape').then((res) => {
let data = res.json()
data.fishD.forEach(fishObj => {
handleC(fishObj.county)
handleL(fishObj.lake)
handleF(fishObj.fish)
})
})