From af97d15057f15a1744e0e9c670f69a3f2eca12da Mon Sep 17 00:00:00 2001 From: Joe Wicentowski Date: Tue, 25 Jun 2024 12:46:15 -0400 Subject: [PATCH] Adopt community convention for XQuery modules MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit … ONLY at jinks top-level application package - not for any of the generated application packages --- controller.xql => controller.xq | 2 +- modules/{api.xql => api.xq} | 0 post-install.xql => post-install.xq | 4 ++-- repo.xml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) rename controller.xql => controller.xq (96%) rename modules/{api.xql => api.xq} (100%) rename post-install.xql => post-install.xq (75%) 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