Gitlab Community Edition Instance

Skip to content
Snippets Groups Projects
Commit 2789285f authored by Mathias Goebel's avatar Mathias Goebel
Browse files

get parameter for reload

parent 250bc844
No related branches found
No related tags found
No related merge requests found
Pipeline #91216 passed
......@@ -11,8 +11,12 @@ declare option output:method "json";
declare option output:media-type "application/json";
(: we register the REST interface :)
let $prepare := xmldb:get-child-resources("/db/apps/openapi/content")[. != "openapi.xqm"]
let $prepare :=
if(xs:boolean(request:get-parameter("register", "false")))
then
xmldb:get-child-resources("/db/apps/openapi/content")[. != "openapi.xqm"]
! exrest:register-module(xs:anyURI("/db/apps/openapi/content/" || .))
else ()
(: locate the target path :)
let $thisPath := replace(system:get-module-load-path(),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment