Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adopt community convention for XQuery modules #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>