I understand this was solved, however, I am wondering what the following is:
getCollections = () =>
I tried to implement the code but said getCollections() wasn't defined, I am new to app development so would be great if someone could assist me. I don't understand how you call an API that is in the backend from the frontend.
@benjk not sure exactly which portion are your referring to - swapping GET for POST in the koa-router calls should do the trick, unless there's something extra you're doing in the POST request.
Can you post your code?