...
There was permissions checking code at one point where the design was to check if a user has the permission to do something before calling an API that needed permission for. But this was a problem because a hacker could call the API directly and bypass the permission.
In other projects I have seen people use promises to get a template and some data and combine the results together. The design problem to be solved there is a better way to get templates to eliminate this complexity.
Getting ID of the “primary node” before sending information to it. This is really an implementation detail of the backend which shouldn’t be something the front end is dealing with.
...