Open Roxot opened 8 years ago
Instead of having every function do the authorization itself, have some middleware that takes care of this. This keeps the code more DRY.
This is a must ;)
We could also look into web frameworks like Gin that provide this kind of stuff in the framework.
Instead of having every function do the authorization itself, have some middleware that takes care of this. This keeps the code more DRY.