Refactor API calls
Instead of having a generic middleware that makes an API call, we could do the API call in the relevant handler. It would allow for something like:
resp := struct{TempPath string, FooBar int}{}
api.Call(endpoint, &resp)
// etc
I.e., no longer collecting all possible fields returned by the API in one struct.
(This came out of a call with @ayufan)
Edited by Jacob Vosmaer