Bugfix for fees / Oauth 2 implementation

This commit is contained in:
Senad Uka
2019-08-31 06:11:15 +02:00
parent cbf502bc14
commit b3e2de9f57
15 changed files with 245 additions and 23 deletions

15
helpers/oauthApi.js Normal file
View File

@@ -0,0 +1,15 @@
'use strict';
require('dotenv').config();
const axios = require('axios');
const OAUTHUrl = process.env.ORD_OAUTH_URL;
const OAuthAPI = axios.create({
baseURL: OAUTHUrl,
headers: {'Content-Type': 'application/x-www-form-urlencoded'},
});
module.exports = {
OAuthAPI,
};