diff --git a/controller.xql b/controller.xq similarity index 96% rename from controller.xql rename to controller.xq index 51a36a5..91251d3 100644 --- a/controller.xql +++ b/controller.xq @@ -27,7 +27,7 @@ else if (matches($exist:path, "\.(json|js|md|png|svg)$", "s")) then (: all other requests are passed on the Open API router :) else - + { if ($allowOrigin = "*") then () else } diff --git a/modules/api.xql b/modules/api.xq similarity index 100% rename from modules/api.xql rename to modules/api.xq diff --git a/post-install.xql b/post-install.xq similarity index 75% rename from post-install.xql rename to post-install.xq index 2e5e963..586c371 100644 --- a/post-install.xql +++ b/post-install.xq @@ -9,5 +9,5 @@ declare variable $dir external; (: the target collection into which the app is deployed :) declare variable $target external; -sm:chgrp(xs:anyURI($target || "/modules/api.xql"), "dba"), -sm:chmod(xs:anyURI($target || "/modules/api.xql"), "rwxr-Sr-x") \ No newline at end of file +sm:chgrp(xs:anyURI($target || "/modules/api.xq"), "dba"), +sm:chmod(xs:anyURI($target || "/modules/api.xq"), "rwxr-Sr-x") \ No newline at end of file diff --git a/repo.xml b/repo.xml index 9322a27..4ef1862 100644 --- a/repo.xml +++ b/repo.xml @@ -8,6 +8,6 @@ true application jinks - post-install.xql + post-install.xq