mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-22 12:09:21 +00:00
Moved API connexion configuration
This commit is contained in:
parent
3221cf2732
commit
8740c2128a
@ -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
|
||||||
*/
|
*/
|
||||||
|
@ -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
|
||||||
*/
|
*/
|
||||||
|
@ -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";
|
|
||||||
|
|
||||||
}
|
}
|
@ -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."',
|
||||||
|
Loading…
Reference in New Issue
Block a user