Path option in query param excludes ? and =

If I have an endpoint “/brawlstats/rankings/global/brawlers/16000001?limit=200”, in the route I have @app.get("/brawlstats/<endpoint:path>"). I want endpoint to include the entire url above, but instead it cuts off at the question mark ("/brawlstats/rankings/global/brawlers/16000001"). How do I make it include the whole path?

Should work with using a regular expression

/brawlstats/brawlers/<endpoint:[A-Za-z0-9\?\=> should work, but you;ll have to parse the query parameter on your own, then.

Alternately you could use request.query_string and parse that, or you may want to use the request params directly as noted here: https://sanic.readthedocs.io/en/latest/sanic/request_data.html#accessing-values-using-get-and-getlist