Move showPublishNote and publishNoteActions to note controller

Signed-off-by: David Mehren <dmehren1@gmail.com>
This commit is contained in:
David Mehren 2019-10-27 15:22:14 +01:00
parent dee62ce571
commit 2bc4233ba8
No known key found for this signature in database
GPG key ID: 6017AF117F9756CB
6 changed files with 99 additions and 125 deletions

View file

@ -8,7 +8,6 @@ const markdownpdf = require('markdown-pdf')
const moment = require('moment')
const querystring = require('querystring')
exports.getInfo = function getInfo (req, res, note) {
const body = note.content
const extracted = models.Note.extractMeta(body)