users.js 211 B

12345678910111213141516
  1. const db = require("../db.js");
  2. const userRepository = {
  3. login: function(){
  4. },
  5. register: function(obj){
  6. },
  7. getByID: function(id){
  8. return db.get("user:" + id);
  9. },
  10. }
  11. module.exports = userRepository;