mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-12-25 02:18:51 +00:00
Moved API connexion configuration
This commit is contained in:
parent
3221cf2732
commit
8740c2128a
@ -7,6 +7,13 @@
|
||||
|
||||
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
|
||||
*/
|
||||
|
@ -7,6 +7,13 @@
|
||||
|
||||
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
|
||||
*/
|
||||
|
@ -12,11 +12,4 @@ class Config {
|
||||
*/
|
||||
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."',
|
||||
|
||||
//API configuration
|
||||
apiURL: '".Config::API_URL."',
|
||||
apiServiceName: '".Config::API_SERVICE_NAME."',
|
||||
apiServiceToken: '".Config::API_SERVICE_TOKEN."',
|
||||
apiURL: '".$config::API_URL."',
|
||||
apiServiceName: '".$config::API_SERVICE_NAME."',
|
||||
apiServiceToken: '".$config::API_SERVICE_TOKEN."',
|
||||
|
||||
//Default language
|
||||
defaultLanguage: '".$config::DEFAULT_LANGUAGE."',
|
||||
|
Loading…
Reference in New Issue
Block a user