package com.apruve;

/**
 * @author Robert Nelson
 * @since 0.1
 */
public enum ApruveEnvironment {
	PROD("https://www.apruve.com"), TEST("https://test.apruve.com"), DEV("http://localhost:3000");

	private static final String API_V3_PATH = "/api/v3";
	private static final String JS_PATH = "/js/apruve.js";

	private String baseUrl;

	private ApruveEnvironment(String baseURL) {
		this.baseUrl = baseURL;
	}

	public String getBaseUrl() {
		return baseUrl;
	}

	/**
	 * @return The root URL for making API calls in the environment
	 */
	public String getApiV3Url() {
		return getBaseUrl() + API_V3_PATH;
	}

	/**
	 * @return The apruve.js URL for the environment
	 */
	public String getJsUrl() {
		return getBaseUrl() + JS_PATH;
	}

	/**
	 * @return HTML tag that will include apruve.js in a page
	 */
	public String getJsTag() {
		return "<script src=\"" + getJsUrl()
				+ "\" type=\"text/javascript\"></script>";
	}
}
@@ -112,11 +112,11 @@
 s://
-www
+app
 .apr
@@ -913,8 +913,9 @@
 %3E%22;%0A%09%7D%0A%7D
+%0A

Use app.apruve.com as the prod environment URL