Skip to content

Commit 90fc8e2

Browse files
committed
change unlink endpoints to post method
1 parent 4dada0a commit 90fc8e2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/routes/contact.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ router.post('/link/:contact_id', async (req, res) => {
220220
});
221221

222222
// unlinks contact with list of entities
223-
router.delete('/unlink/:contact_id', async (req, res) => {
223+
router.post('/unlink/:contact_id', async (req, res) => {
224224
let code;
225225
let message;
226226
try {

src/routes/entity.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ router.post('/link/:entity_id', async (req, res) => {
241241
});
242242

243243
// unlinks entity with list of contacts
244-
router.delete('/link/:entity_id', async (req, res) => {
244+
router.post('/unlink/:entity_id', async (req, res) => {
245245
let code;
246246
let message;
247247
try {

0 commit comments

Comments
 (0)