SolidScribe/server/routes/publicController.js

18 lines
303 B
JavaScript
Raw Normal View History

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