Aucune description

middleware.js 150B

123456789101112
  1. module.exports = {
  2. requireAuthorized: function *(next) {
  3. if (!this.isAuthenticated()) {
  4. this.status = 404;
  5. return;
  6. }
  7. yield next;
  8. }
  9. };