Commit f9f7473f authored by barth23's avatar barth23
Browse files

add config for contact form

parent 09de8d56
......@@ -2,7 +2,7 @@
<collection xmlns="http://exist-db.org/collection-config/1.0">
<index xmlns:xs="http://www.w3.org/2001/XMLSchema">
<fulltext default="none" attributes="false"/>
<create qname="@XML:ID" type="xs:string"/>
<create qname="@xml:id" type="xs:string"/>
</index>
<triggers>
<trigger class="org.exist.extensions.exquery.restxq.impl.RestXqTrigger"/>
......
......@@ -80,6 +80,13 @@ else if ($exist:path eq "/api.json") then
<dispatch xmlns="http://exist.sourceforge.net/NS/exist">
<forward url="{$exist:controller}/modules/api.xq" method="get" />
</dispatch>
else if (contains($exist:path, "/api/form")) then
let $api-call := substring-after($exist:path, '/api/form')
return
<dispatch xmlns="http://exist.sourceforge.net/NS/exist">
<redirect url="/exist/restxq/api/form" method="post"/>
</dispatch>
else if ($exist:path eq "/content.xml") then
<dispatch xmlns="http://exist.sourceforge.net/NS/exist">
<forward url="{$exist:controller}/modules/content.xq" method="get" />
......
......@@ -129,8 +129,8 @@ let $path := $system-path
let $user := util:system-property("user.name")
let $message1 := $path || " is not available. Create it and make sure " || $user || " can write there."
let $message2 := "Could not write to " || $path || "."
let $restxq_register_msg := util:log-system-out("register sendmail api")
let $restxq_register := exrest:register-module(xs:anyURI($target||"modules/architrave/sendmail.xqm"))
(:~ let $restxq_register_msg := util:log-system-out("register sendmail api")
let $restxq_register := exrest:register-module(xs:anyURI($target||"modules/architrave/sendmail.xqm")) ~:)
let $indexing_msg := util:log-system-out("indexing edition pages and registers ...")
let $indexing := elastic:setup()
let $map-tiles-msg := util:log-system-out("importing paris map tiles ...")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment