I’d still use query params for this. Instead of range I’d use from. Then you can have ranges displayed like so:
- Range of days:
/stats?from=2024-20-06&to=2024-30-06 - A specific day:
/stats?from=2024-30-06&to=2024-30-06 - Special case values:
/stats?from=yesterday
And of course every filter you dream up in the future just works /stats?from=today&country=fr&future-filter=arg
You could even do /stats?yesterday. Paths are for hierarchical data, query params for key-value data


















