Get whitelisted URLs - witherspoon json
This commit adds witherspoon specific json file that specifies
whitelisted URLs to be allowed access by REST server.
Change-Id: Iaa9c77a38ac60748df8d819191596c17c635a18a
Signed-off-by: Nagaraju Goruganti <ngorugan@in.ibm.com>
diff --git a/meta-witherspoon/recipes-phosphor/interfaces/phosphor-rest.bbappend b/meta-witherspoon/recipes-phosphor/interfaces/phosphor-rest.bbappend
new file mode 100644
index 0000000..72d991c
--- /dev/null
+++ b/meta-witherspoon/recipes-phosphor/interfaces/phosphor-rest.bbappend
@@ -0,0 +1 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
diff --git a/meta-witherspoon/recipes-phosphor/interfaces/phosphor-rest/url_config.json b/meta-witherspoon/recipes-phosphor/interfaces/phosphor-rest/url_config.json
new file mode 100644
index 0000000..46a4d02
--- /dev/null
+++ b/meta-witherspoon/recipes-phosphor/interfaces/phosphor-rest/url_config.json
@@ -0,0 +1,14 @@
+{
+ "urls": [
+ "/org/open_power/*",
+ "/com/ibm/*",
+ "/xyz/openbmc_project/*",
+ "/enumerate",
+ "/list",
+ "/login",
+ "/logout",
+ "/subscribe",
+ "/upload/image",
+ "/download/dump/*"
+ ]
+}