var express = require('express')
var router = express.Router()
let Note = require('@models/Note')
//
// Public Note action
router.post('/opensharednote', function (req, res) {
Note.getShared(req.body.noteId, req.body.sharedKey)
.then(results => res.send(results))
})
module.exports = router