mirror of
				https://github.com/pierre42100/ComunicWeb
				synced 2025-11-04 12:14:12 +00:00 
			
		
		
		
	Moved API connexion configuration
This commit is contained in:
		@@ -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."',
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user