I have spent around 2 Hours figuring out why my fetchAll and fetchAvailable functions were both throwing the same 404 error, turns out that the wrong Options were getting passed through to the fetch function after it looped once resulting in the url being something like:
"/allocations/[Object object]/"
This can be fixed by passing options instead of opts here:
