Skip to content
Permalink
Browse files
refactoring userController to be a class. Making hello() static will …
…still allow me to access it without instantiating the class
  • Loading branch information
reisborw committed Oct 14, 2019
1 parent 38c3477 commit 8a707f1d884b5a04aca4823a3fc3887835786ec7
Showing 1 changed file with 2 additions and 2 deletions.
@@ -2,8 +2,8 @@

const User = require('../models/user');

module.exports = {
hello () {
module.exports = class UserController {
static hello () {
let user = new User();
user.setName('Wallef');

0 comments on commit 8a707f1

Please sign in to comment.