diff --git a/xq/restx_dict_cached.xq b/xq/restx_dict_cached.xq index 3138d83..db84ff6 100644 --- a/xq/restx_dict_cached.xq +++ b/xq/restx_dict_cached.xq @@ -100,6 +100,20 @@ declare function page:invert-lang($lang as xs:string) as xs:string { (: ======================= HOMEPAGE ============================== :) (: =============================================================== :) +declare %rest:path("{$lang}") + %output:method("html") + %output:html-version('5') + function page:zero($lang) { + page:home($lang) + }; + +declare %rest:path("/") + %output:method("html") + %output:html-version('5') + function page:zero() { + page:zero('en') + }; + declare %rest:path("{$lang}/home") %output:method("html") %output:html-version('5')