Comparing version 0.0.12 to 0.0.13
{ | ||
"name": "volenday", | ||
"version": "0.0.12", | ||
"version": "0.0.13", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "scripts": { |
const axios = require('axios'); | ||
const basicAuth = require('basic-auth'); | ||
export default function (applicationId) { | ||
return function (req, res, next) { | ||
export default (applicationId) => { | ||
return (req, res, next) => { | ||
console.log(applicationId); | ||
console.log(`http://test.api.aha.volenday.com/api/validateApplication/${applicationId}`); | ||
axios.get(`http://test.api.aha.volenday.com/api/validateApplication/${applicationId}`).then(response => { | ||
console.log(response); | ||
console.log(req); | ||
let credentials = basicAuth(req), | ||
@@ -9,0 +12,0 @@ username = 'NTw#n&xsK#P6/Phk', |
320926
1377