From ef7b1e4d524c5768d8fd9b384f3907aee25c1b0b Mon Sep 17 00:00:00 2001 From: Juri Leino Date: Tue, 20 Aug 2024 12:35:05 +0200 Subject: [PATCH 1/2] [ignore] remove tabs from controller.xq --- controller.xq | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/controller.xq b/controller.xq index 86707fcf..e76989fa 100644 --- a/controller.xq +++ b/controller.xq @@ -222,7 +222,7 @@ else if ($exist:resource eq 'execute') then - + @@ -243,12 +243,12 @@ else if ($local:method = 'get' and starts-with($exist:path, '/results/')) then else if ($local:method = 'get' and $exist:resource eq "outline") then let $query := request:get-parameter("qu", ()) let $base := request:get-parameter("base", ()) - return + return - + - + From 022440502953fde5611dc9745ef676359220c278 Mon Sep 17 00:00:00 2001 From: Juri Leino Date: Tue, 20 Aug 2024 12:36:39 +0200 Subject: [PATCH 2/2] [bugfix] outline view in sidebar The outline route returned statuscode 404 because it is in fact a post request and only get was allowed in the controller. --- controller.xq | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller.xq b/controller.xq index e76989fa..5d990115 100644 --- a/controller.xq +++ b/controller.xq @@ -240,7 +240,7 @@ else if ($local:method = 'get' and starts-with($exist:path, '/results/')) then -else if ($local:method = 'get' and $exist:resource eq "outline") then +else if ($local:method = 'post' and $exist:resource eq "outline") then let $query := request:get-parameter("qu", ()) let $base := request:get-parameter("base", ()) return