File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ declare namespace rest = "http://exquery.org/ns/restxq";
77declare namespace output = "http://www.w3.org/2010/xslt-xquery-serialization" ;
88declare namespace http = "http://expath.org/ns/http-client" ;
99import module namespace sm = "http://exist-db.org/xquery/securitymanager" ;
10+ import module namespace system = "http://exist-db.org/xquery/system" ;
1011
1112import module namespace config = "http://fusiondb.com/ns/studio/api/config" at "modules/config.xqm" ;
1213import module namespace col = "http://fusiondb.com/ns/studio/api/collection" at "modules/collection.xqm" ;
@@ -39,7 +40,13 @@ declare
3940function api:version () {
4041 api:cors-allow (
4142 map {
42- "version" : $config:version
43+ "version" : $config:version,
44+ "server" : map {
45+ "product-name" : system:get-product-name (),
46+ "version" : system:get-version (),
47+ "revision" : system:get-revision (),
48+ "build" : system:get-build ()
49+ }
4350 }
4451 )
4552};
You can’t perform that action at this time.
0 commit comments