Moved API connexion configuration

This commit is contained in:
Pierre 2018-04-29 21:04:30 +02:00
parent 3221cf2732
commit 8740c2128a
4 changed files with 17 additions and 10 deletions

View File

@ -7,6 +7,13 @@
class Build { class Build {
/**
* API access and credentials
*/
const API_URL = "http://devweb.local/comunic/api/";
const API_SERVICE_NAME = "ComunicWeb";
const API_SERVICE_TOKEN = "12XU67pJUlnNQ";
/** /**
* Site URL * Site URL
*/ */

View File

@ -7,6 +7,13 @@
class Dev { class Dev {
/**
* API access and credentials
*/
const API_URL = "http://devweb.local/comunic/api/";
const API_SERVICE_NAME = "ComunicWeb";
const API_SERVICE_TOKEN = "12XU67pJUlnNQ";
/** /**
* Site URL * Site URL
*/ */

View File

@ -12,11 +12,4 @@ class Config {
*/ */
const VERSION = "0.1.1"; const VERSION = "0.1.1";
/**
* API access and credentials
*/
const API_URL = "http://devweb.local/comunic/api/";
const API_SERVICE_NAME = "ComunicWeb";
const API_SERVICE_TOKEN = "12XU67pJUlnNQ";
} }

View File

@ -84,9 +84,9 @@ function get_javascript_config($config) : string {
siteURL: '".$config::SITE_URL."', siteURL: '".$config::SITE_URL."',
//API configuration //API configuration
apiURL: '".Config::API_URL."', apiURL: '".$config::API_URL."',
apiServiceName: '".Config::API_SERVICE_NAME."', apiServiceName: '".$config::API_SERVICE_NAME."',
apiServiceToken: '".Config::API_SERVICE_TOKEN."', apiServiceToken: '".$config::API_SERVICE_TOKEN."',
//Default language //Default language
defaultLanguage: '".$config::DEFAULT_LANGUAGE."', defaultLanguage: '".$config::DEFAULT_LANGUAGE."',