convert server to mjs
This commit is contained in:
parent
cab2da5e62
commit
c2f0b9bf3f
13 changed files with 43 additions and 32 deletions
|
|
@ -1,13 +1,13 @@
|
|||
// pass through api requests
|
||||
|
||||
// http(s) modules
|
||||
const https = require('https');
|
||||
import https from 'https';
|
||||
|
||||
// url parsing
|
||||
const queryString = require('querystring');
|
||||
import queryString from 'querystring';
|
||||
|
||||
// return an express router
|
||||
module.exports = (req, res) => {
|
||||
const cors = (req, res) => {
|
||||
// add out-going headers
|
||||
const headers = {};
|
||||
headers['user-agent'] = '(WeatherStar 4000+, ws4000@netbymatt.com)';
|
||||
|
|
@ -41,3 +41,5 @@ module.exports = (req, res) => {
|
|||
console.error(e);
|
||||
});
|
||||
};
|
||||
|
||||
export default cors;
|
||||
|
|
@ -1,13 +1,13 @@
|
|||
// pass through api requests
|
||||
|
||||
// http(s) modules
|
||||
const https = require('https');
|
||||
import https from 'https';
|
||||
|
||||
// url parsing
|
||||
const queryString = require('querystring');
|
||||
import queryString from 'querystring';
|
||||
|
||||
// return an express router
|
||||
module.exports = (req, res) => {
|
||||
const outlook = (req, res) => {
|
||||
// add out-going headers
|
||||
const headers = {};
|
||||
headers['user-agent'] = '(WeatherStar 4000+, ws4000@netbymatt.com)';
|
||||
|
|
@ -42,3 +42,5 @@ module.exports = (req, res) => {
|
|||
console.error(e);
|
||||
});
|
||||
};
|
||||
|
||||
export default outlook;
|
||||
|
|
@ -1,13 +1,13 @@
|
|||
// pass through api requests
|
||||
|
||||
// http(s) modules
|
||||
const https = require('https');
|
||||
import https from 'https';
|
||||
|
||||
// url parsing
|
||||
const queryString = require('querystring');
|
||||
import queryString from 'querystring';
|
||||
|
||||
// return an express router
|
||||
module.exports = (req, res) => {
|
||||
const radar = (req, res) => {
|
||||
// add out-going headers
|
||||
const headers = {};
|
||||
headers['user-agent'] = '(WeatherStar 4000+, ws4000@netbymatt.com)';
|
||||
|
|
@ -42,3 +42,5 @@ module.exports = (req, res) => {
|
|||
console.error(e);
|
||||
});
|
||||
};
|
||||
|
||||
export default radar;
|
||||
Loading…
Add table
Add a link
Reference in a new issue