Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 'use strict'
- const magic = require('./magic')
- class Request {
- constructor(req) {
- this.req = req
- this.user = 'morrelinko'
- }
- __get (prop) {
- return this.req[prop]
- }
- __set (prop, value) {
- this.req[prop] = value
- }
- }
Add Comment
Please, Sign In to add comment