diff options
| author | Lex Neva <lexelby@users.noreply.github.com> | 2020-04-28 12:34:05 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-28 18:34:05 +0200 |
| commit | cb2b4e3522cb7f426ba5ad3e68deb9e6ccc581ec (patch) | |
| tree | 2a2f38823c3c9f0b5439ce2aa7c9040299109292 /electron/src/lib/api.js | |
| parent | eb526927e16954390d06929535d6f5c3766b5f6c (diff) | |
electron simulator (#531)
Diffstat (limited to 'electron/src/lib/api.js')
| -rw-r--r-- | electron/src/lib/api.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/electron/src/lib/api.js b/electron/src/lib/api.js new file mode 100644 index 00000000..45b67d56 --- /dev/null +++ b/electron/src/lib/api.js @@ -0,0 +1,8 @@ +const axios = require('axios') +const queryString = require('query-string') + +var port = queryString.parse(global.location.search).port + +module.exports = axios.create({ + baseURL: `http://127.0.0.1:${port}/` +}) |
