I am trying to implement an application which queries data based on a @PathVariable. Slight complexity is that the path variable is at the root. I mean it's like mydomain.com/{myVar}.
When I try to implement something like this, the issue is it's clashing with many resources directly under the root (eg: index.html).
As a part of solving the problem, I tried to serve static resources under root from controller individually(Though it doesn't sound like a proper solution), But, not sure how to send the resources using Spring Controller methods.
Also, I tried to see if there was a way to exclude url-mappings within @RequestMapping, But didn't work.
Is there a way to implement this? What would be the best and efficient practice?
My application currently uses Spring boot with gradle, and static resources are under src/main/webapp Any help is appreciated, Thank you