mirror of
				https://gitlab.nic.cz/turris/reforis/foris-js.git
				synced 2025-11-03 23:00:31 +01:00 
			
		
		
		
	Fix URL prefixes.
This commit is contained in:
		@@ -5,7 +5,8 @@
 | 
				
			|||||||
 * See /LICENSE for more information.
 | 
					 * See /LICENSE for more information.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export const REFORIS_URL_PREFIX = process.env.LIGHTTPD ? "/reforis" : "";
 | 
					export const REFORIS_URL_PREFIX = "/reforis";
 | 
				
			||||||
 | 
					export const REFORIS_API_URL_PREFIX = `${REFORIS_URL_PREFIX}/api`;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export const ForisURLs = {
 | 
					export const ForisURLs = {
 | 
				
			||||||
    login: `${REFORIS_URL_PREFIX}/login`,
 | 
					    login: `${REFORIS_URL_PREFIX}/login`,
 | 
				
			||||||
@@ -24,5 +25,5 @@ export const ForisURLs = {
 | 
				
			|||||||
    luci: "/cgi-bin/luci",
 | 
					    luci: "/cgi-bin/luci",
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // API
 | 
					    // API
 | 
				
			||||||
    reboot: `${REFORIS_URL_PREFIX}/api/reboot`,
 | 
					    reboot: `${REFORIS_API_URL_PREFIX}/reboot`,
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user