If I have a url called https://hostname:port/service/session
.
How do I make it redirect to call my xsjs file called session.xsjs
which returns session info in json format.
I was reading regarding SAP Hana XS configuration on below link:
But unable to find anything concrete. Any help is appreciated!
I found the solution.
We can redirect the url to a specific xsjs file in the .xsaccess rewrite_rules property.
Link for the documentation: https://help.sap.com/viewer/52715f71adba4aaeb480d946c742d1f6/2.0.02/en-US/8067eabb21af4448b73895982ec394a4.html
Solution for my example:
`"rewrite_rules" : [{
"source": "/service/session",
"target": "session.xsjs"
}],`