Moving api to its own folder

This commit is contained in:
Richard Ramos 2018-10-08 19:05:41 -04:00
parent db78417298
commit 76bde03ece
5 changed files with 5 additions and 4 deletions

View File

@ -1,4 +1,4 @@
export default {
'ENSDappURL': 'http://www.status.im/',
'APIServer': 'http://localhost:3000'
'APIServer': 'http://localhost:3000/api'
};

View File

@ -73,6 +73,7 @@ module.exports = {
testnet: {
networkType: "testnet",
syncMode: "light",
wsOrigins: "http://localhost:8000,embark",
account: {
password: "config/testnet/password"
}

View File

@ -1,7 +1,7 @@
module.exports = {
// default applies to all environments
default: {
enabled: true,
enabled: false,
provider: "whisper", // Communication provider. Currently, Embark only supports whisper
available_providers: ["whisper"], // Array of available providers
},

View File

@ -1,7 +1,7 @@
module.exports = {
// default applies to all environments
default: {
enabled: true,
enabled: false,
ipfs_bin: "ipfs",
provider: "ipfs",
available_providers: ["ipfs"],

View File

@ -177,7 +177,7 @@ events.on('web3:connected', () => {
app.use(bodyParser.urlencoded({extended: false}));
app.use(bodyParser.json());
app.use('/', router);
app.use('/api/', router);
app.listen(port, () => {
console.log('Server listening on port ' + port);