79119998

Date: 2024-10-23 23:40:44
Score: 2
Natty:
Report link

https://asp.mvc-tutorial.com/routing/routing-templates/

The solution turned out to be to use a '*' character in front of the token, like this:

[Route("api/GetString/{*objectPath}")]

I don't get the leading slash, but that's fine, I can prepend that before the search. Of course, after 3 hours of searching, I find this 17 minutes after posting the question :-)

Best regards and HTH someone

Reasons:
  • Blacklisted phrase (0.5): Best regards
  • Blacklisted phrase (1): regards
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Kerry Thomas