Update server.js

Update authorize api call to reflect change in authorize middleware (#47)