Skip to content

Commit

Permalink
Adopt community convention for XQuery modules
Browse files Browse the repository at this point in the history
… ONLY at jinks top-level application package - not for any of the generated application packages
  • Loading branch information
joewiz committed Jul 23, 2024
1 parent c84c711 commit d0787be
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion controller.xql → controller.xq
Original file line number Diff line number Diff line change
Expand Up @@ -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
<dispatch xmlns="http://exist.sourceforge.net/NS/exist">
<forward url="{$exist:controller}/modules/api.xql">
<forward url="{$exist:controller}/modules/api.xq">
<set-header name="Access-Control-Allow-Origin" value="{$allowOrigin}"/>
{ if ($allowOrigin = "*") then () else <set-header name="Access-Control-Allow-Credentials" value="true"/> }
<set-header name="Access-Control-Allow-Methods" value="GET, POST, DELETE, PUT, PATCH, OPTIONS"/>
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions post-install.xql → post-install.xq
Original file line number Diff line number Diff line change
Expand Up @@ -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")
sm:chgrp(xs:anyURI($target || "/modules/api.xq"), "dba"),
sm:chmod(xs:anyURI($target || "/modules/api.xq"), "rwxr-Sr-x")
2 changes: 1 addition & 1 deletion repo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
<copyright>true</copyright>
<type>application</type>
<target>jinks</target>
<finish>post-install.xql</finish>
<finish>post-install.xq</finish>
<permissions user="tei" group="tei" password="simple" mode="rw-rw-r--" />
</meta>

0 comments on commit d0787be

Please sign in to comment.