avoid various HTTP server issues with slashes by putting notePath into the body with POST

This commit is contained in:
zadam
2019-02-17 20:49:51 +01:00
parent a7fce33750
commit c1ce0c6b22
3 changed files with 4 additions and 6 deletions

View File

@@ -4,8 +4,8 @@ const optionService = require('../../services/options');
const RecentNote = require('../../entities/recent_note');
async function addRecentNote(req) {
const branchId = req.params.branchId;
const notePath = req.params.notePath;
const branchId = req.body.branchId;
const notePath = req.body.notePath;
await new RecentNote({
branchId: branchId,