Skip to content
This repository was archived by the owner on Mar 7, 2023. It is now read-only.

Dependabot/npm and yarn/js yaml 3.13.1 #612

Open
wants to merge 13 commits into
base: dependabot/npm_and_yarn/js-yaml-3.13.1
Choose a base branch
from
Prev Previous commit
Next Next commit
lower precedence of getContact route
Justin Tormey authored and Christianlopez4579 committed Jan 29, 2023
commit 7d1d23990081375b43818c6c50a89869d5c472ff
12 changes: 6 additions & 6 deletions src/server.js
Original file line number Diff line number Diff line change
@@ -190,12 +190,6 @@ contactsAPI.all(
callApi('listContacts')
)

contactsAPI.all(
'/:contact',
required(['password']),
callApi('getContact')
)

contactsAPI.all(
'/create_invitation',
required(['password', 'name', 'companyName']),
@@ -208,6 +202,12 @@ contactsAPI.all(
callApi('requestPayment')
)

contactsAPI.all(
'/:contact',
required(['password']),
callApi('getContact')
)

// v2 API
v2API.use(bodyParser.json())
v2API.use(bodyParser.urlencoded({ extended: true }))