Guest User

Untitled

a guest
Jan 18th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. 'use strict'
  2.  
  3. const magic = require('./magic')
  4.  
  5. class Request {
  6. constructor(req) {
  7. this.req = req
  8. this.user = 'morrelinko'
  9. }
  10.  
  11. __get (prop) {
  12. return this.req[prop]
  13. }
  14.  
  15. __set (prop, value) {
  16. this.req[prop] = value
  17. }
  18. }
Add Comment
Please, Sign In to add comment