title: Is it a good idea to use js decorators in node.js (express.js) backend project?
body: <p>We are implementing permission system in our backend project. We need it to be very robust and open for future changes. We also want it to be route specific.
  For example: for two different routes /lessons/{id} and /lessons we want to be able to set different permissions. Even more specific, for each route we want to be able to add permission on request type level.
  For example: route /lessons GET should have one set of permissions and route /lessons POST should have some other set of permissions.</p>
  
  <p>If we could use decorators it would make the permission system very clean and clear. Before each router function you put decorator with arguments who can access that route.</p>
  
  <p>We searched for javascript decorators and found that they are not natively supported. There are some libraries but they don't seem to be well supported and we got an impression that it shouldn't be used in production environment.</p>
  
  <pre><code>@allowedRoles('ragular_user')
  router.get('/', async function(req, res) {
    await database...
  </code></pre>
  
  <p>If standard decorators are not possible or not recommended for using what else can accomplish the same result?
  We would like to avoid long and complicated json config file for middleware that will check who can access what.</p>