Skip to content

Commit 25ad674

Browse files
committed
[ignore] move template files to subcollection
closes #64
1 parent a96f4dd commit 25ad674

File tree

5 files changed

+4
-4
lines changed

5 files changed

+4
-4
lines changed

controller.xql

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ if (request:get-method() eq "GET" and $exist:path eq "") then
4343
(: Landing page with package listing :)
4444
else if (request:get-method() eq "GET" and $exist:path eq "/") then
4545
<dispatch xmlns="http://exist.sourceforge.net/NS/exist">
46-
<forward url="{$exist:controller}/index.html"/>
46+
<forward url="{$exist:controller}/templates/index.html"/>
4747
<view>
4848
<forward url="{$exist:controller}/modules/view.xq">
4949
<set-header name="Cache-Control" value="no-cache"/>
@@ -75,7 +75,7 @@ else if (request:get-method() eq "GET" and starts-with($exist:path, "/packages")
7575
(: Serve package detail - without the legacy ".html" extension :)
7676
else if (request:get-method() eq "GET" and starts-with($exist:path, "/packages")) then
7777
<dispatch xmlns="http://exist.sourceforge.net/NS/exist">
78-
<forward url="{$exist:controller}/packages.html"/>
78+
<forward url="{$exist:controller}/templates/packages.html"/>
7979
<view>
8080
<forward url="{$exist:controller}/modules/view.xq">
8181
<add-parameter name="abbrev" value="{$exist:resource}"/>
@@ -165,7 +165,7 @@ else if
165165
$exist:path = ("/admin", "/publish")
166166
) then
167167
<dispatch xmlns="http://exist.sourceforge.net/NS/exist">
168-
<forward url="{$exist:controller}/login.html"/>
168+
<forward url="{$exist:controller}/templates/login.html"/>
169169
<view>
170170
<forward url="{$exist:controller}/modules/view.xq">
171171
<set-header name="Cache-Control" value="no-cache"/>
@@ -177,7 +177,7 @@ else if
177177
(: Allow authenticated users into admin page :)
178178
else if (request:get-method() = ("GET", "POST") and $exist:path eq "/admin") then
179179
<dispatch xmlns="http://exist.sourceforge.net/NS/exist">
180-
<forward url="{$exist:controller}/admin.html"/>
180+
<forward url="{$exist:controller}/templates/admin.html"/>
181181
<view>
182182
<forward url="{$exist:controller}/modules/view.xq">
183183
<set-header name="Cache-Control" value="no-cache"/>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)