You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.
At least with a routes/request/@resource in my config.xqy, when the req:expand-resources is executed to include all the resource routing rules the view is not taken into account.
when I call /photo.json the photo item is called and I receive back whatever the controller returns, in this case XML instead of json.
I notice in router:route that the $default-layout is blank since neither my config nor the default config specify a json layout.
Since layout is empty, the raw controller output is output. (router.xqy line: 107)
Also, I was not returning a map:map from my controller, which also sets bypass to fn:true(). (router.xqy line: 103)
When I setup a layout for json in my config, the default-layout is no longer empty.
I will modify my controller to return a map and see if the bypass is set to false.
The text was updated successfully, but these errors were encountered:
Evolving issue, so I will add more as I can.
At least with a routes/request/@resource in my config.xqy, when the req:expand-resources is executed to include all the resource routing rules the view is not taken into account.
when I call /photo.json the photo item is called and I receive back whatever the controller returns, in this case XML instead of json.
I notice in router:route that the $default-layout is blank since neither my config nor the default config specify a json layout.
Since layout is empty, the raw controller output is output. (router.xqy line: 107)
Also, I was not returning a map:map from my controller, which also sets bypass to fn:true(). (router.xqy line: 103)
When I setup a layout for json in my config, the default-layout is no longer empty.
I will modify my controller to return a map and see if the bypass is set to false.
The text was updated successfully, but these errors were encountered: