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