UNPKG

linear

Version:

A simple setup micro-forum built in Node.js with Express and MongoDB.

24 lines (12 loc) 359 B
const profileModel = require('../models/profile'); module.exports = { create (type, data) { return profileModel.createProfile(type, data); }, show (profileId) { return profileModel.showProfileById(profileId); }, update (profileId, data) { return profileModel.updateProfileById(profileId, data); } };