Roxot / polly

Event planning made easy.
www.getpollyapp.com
0 stars 0 forks source link

Have some middleware deal with authorization in API calls #22

Open Roxot opened 8 years ago

Roxot commented 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.

sander-m commented 8 years ago

This is a must ;)

Roxot commented 8 years ago

We could also look into web frameworks like Gin that provide this kind of stuff in the framework.