Skip to content
Snippets Groups Projects
Commit 670b320b authored by chauveau's avatar chauveau
Browse files

petite modif branche sur le pattern d'une route du pager

parent d5a11192
No related branches found
Tags MaX-V0.5
No related merge requests found
......@@ -90,7 +90,7 @@ declare variable $max.plugin.pager:ITEMS_PATH := "itemsPath";
declare
%rest:GET
%output:method("html")
%rest:path("/editions/{$project}/{$route=.*\.xml}/page/{$n}")
%rest:path("/editions/{$project}/{$route=.*\.xml}/page/{$n=[0-9]+}")
function max.plugin.pager:paginate($project as xs:string, $route as xs:string, $n as xs:integer){
let $routeDoc := if(starts-with($route,'doc/'))
then tokenize($route, 'doc/')[last()]
......@@ -251,5 +251,13 @@ function max.plugin.pager:check($project){
};
declare
%rest:GET
%output:method("html")
%rest:path("/editions/{$project}/pager/test")
function max.plugin.pager:test($project){
<div>PAGER TEST OK</div>
};
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment