Hi,
in [1] you can find some pretty generic code that I use (with search and replace for RestXQ paths) in many of my projects to serve anything in some directory related to website served using BaseX.
Another example of that code would be [2].

Best regards
Omar

[1] https://github.com/acdh-oeaw/openapi4restxq/blob/master_basex/swagger-ui.xqm#L18-L120
[2] https://github.com/acdh-oeaw/vicav-app/blob/master/http.xqm#L9-L158

--
Mag. Ing. Omar Siam
Austrian Center for Digital Humanities and Cultural Heritage
Österreichische Akademie der Wissenschaften | Austrian Academy of Sciences
Stellvertretende Behindertenvertrauensperson | Deputy representative for 
disabled persons
Bäckerstraße 13, 1010 Wien, Österreich | Vienna, Austria
T: +43 1 51581-7295
[email protected] | www.oeaw.ac.at/acdh

Reply via email to