Commit 7064602b authored by Guillaume Porte's avatar Guillaume Porte 😶
Browse files

Update max.xq

parent a8f4bd17
Loading
Loading
Loading
Loading
+15
Changes for max.xq: 15 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -15,6 +15,8 @@ import module namespace request = "http://exquery.org/ns/request";
declare
%rest:GET
%output:method("html")
%output:html-version("5.0")
%output:encoding("UTF-8")
%rest:path( "/max")
function max:home(){
   <html>
@@ -317,10 +319,23 @@ declare function max:transformEditionFragment($project, $xml, $route){
declare
  %rest:error("err:max")
  %output:method("html")
  %output:html-version("5.0")
  %output:encoding("UTF-8")
  %rest:error-param("description", "{$desc}")
  function max:max-error($desc)
{
  "Max - ERROR: " || $desc
};

declare
%rest:GET
  %output:method("xml")
  %output:encoding("UTF-8")
  %output:omit-xml-declaration("no")
%rest:path("/{$project}/sitemap.xml")
function max:buildSitemap($project){
  max.html:getSitemap($project)
};