Commit cb5f3f1c authored by Cédric Moreau's avatar Cédric Moreau

[enh] Configuration du pod cible par fichier de conf

parent f6fe2447
"use strict";
module.exports = {
// "baseUrl": "https://gannonce.duniter.org/api/"
"baseUrl": "http://localhost:8600"
}
......@@ -11,8 +11,9 @@ const uuid = require('uuid')
const tweetnacl = require('tweetnacl')
const tweetnaclUtil = require('tweetnacl-util')
const base58 = require('../lib/base58')
const conf = require('../lib/conf.js')
const ACCOUNT_URL = 'http://l:8600/account'
const ACCOUNT_URL = conf.baseUrl + '/account'
@Injectable()
export class AccountService {
......
......@@ -10,9 +10,10 @@ const uuid = require('uuid')
const tweetnacl = require('tweetnacl')
const tweetnaclUtil = require('tweetnacl-util')
const base58 = require('../lib/base58')
const conf = require('../lib/conf.js')
const ANNOUNCE_URL = 'http://l:8600/announce'
const ANNOUNCES_URL = 'http://l:8600/announces'
const ANNOUNCE_URL = conf.baseUrl + '/announce'
const ANNOUNCES_URL = conf.baseUrl + '/announces'
@Injectable()
export class AnnounceService {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment