Skip to content

Commit

Permalink
Copy edits
Browse files Browse the repository at this point in the history
  • Loading branch information
joewiz committed Mar 20, 2023
1 parent f40a825 commit 8519916
Show file tree
Hide file tree
Showing 6 changed files with 291 additions and 223 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
xquery version "3.1";

declare namespace exist = "http://exist.sourceforge.net/NS/exist";
declare namespace exist="http://exist.sourceforge.net/NS/exist";

declare variable $exist:path external;
declare variable $exist:resource external;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
if (starts-with($path, "/sandbox/execute"))
if (starts-with($path, "/eXide/execute"))
then
let $query := request:get-parameter("qu", ())
let $startTime := util:system-time()
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
(: If the request's path is empty, append a trailing slash / :)
if ($exist:path eq "") then
<dispatch xmlns="http://exist.sourceforge.net/NS/exist">
<redirect url="{concat(request:get-uri(), '/')}"/>
</dispatch>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
xquery version "3.1";

declare namespace exist = "http://exist.sourceforge.net/NS/exist";
declare namespace exist="http://exist.sourceforge.net/NS/exist";

declare variable $exist:path external;
declare variable $exist:resource external;
Expand Down
10 changes: 6 additions & 4 deletions src/main/xar-resources/data/urlrewrite/listings/listing-7.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<!--
Default configuration: main web application is served from the
webapp directory.
<!-- HTTP requests to /apps are mapped onto the database path /db/apps -->
<root pattern="/apps" path="xmldb:exist:///db/apps"/>

<!--
++ The default fallback web application is served from the
++ /etc/webapp directory on the filesystem.
-->
<root pattern="/tools" path="xmldb:exist:///db/www"/>
<root pattern=".*" path="/"/>
Loading

0 comments on commit 8519916

Please sign in to comment.