MCPcopy Create free account
hub / github.com/bailicangdu/node-elm / constructor

Method constructor

controller/admin/admin.js:10–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8
9class Admin extends AddressComponent {
10 constructor(){
11 super()
12 this.login = this.login.bind(this)
13 this.register = this.register.bind(this)
14 this.encryption = this.encryption.bind(this)
15 this.updateAvatar = this.updateAvatar.bind(this)
16 }
17 async login(req, res, next){
18 const form = new formidable.IncomingForm();
19 form.parse(req, async (err, fields, files) => {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected