Skip to content
This repository has been archived by the owner on Jun 29, 2020. It is now read-only.

Commit

Permalink
Use absolute paths for endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
fvictorio committed Jun 12, 2018
1 parent 4f940e9 commit 1cc80b5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions web-dapp/app.js
Expand Up @@ -23,7 +23,5 @@ app.use(bodyParser.json({ limit: config.bodySizeLimit }));

const routes = require('./routes')({});
app.use('/api', routes);
app.use('/confirm/api', routes);
app.use('/register/api', routes);

module.exports = app;
2 changes: 1 addition & 1 deletion web-dapp/src/components/ConfirmationPage.js
Expand Up @@ -195,7 +195,7 @@ class ConfirmationPage extends React.Component {

window.$.ajax({
type: 'post',
url: './api/prepareConTx',
url: '/api/prepareConTx',
data: {
wallet,
confirmationCodePlain: this.state.confirmationCodePlain
Expand Down
4 changes: 2 additions & 2 deletions web-dapp/src/components/RegisterAddressPage.js
Expand Up @@ -319,7 +319,7 @@ class RegisterAddressPage extends React.Component {

window.$.ajax({
type: 'post',
url: './api/prepareRegTx',
url: '/api/prepareRegTx',
data: {
wallet,
name: this.state.name,
Expand Down Expand Up @@ -376,7 +376,7 @@ class RegisterAddressPage extends React.Component {
logger.debug('Transaction submitted: ' + txId);
window.$.ajax({
type: 'post',
url: './api/notifyRegTx',
url: '/api/notifyRegTx',
data: {
wallet,
txId,
Expand Down

0 comments on commit 1cc80b5

Please sign in to comment.