filecoin-station / spark-stats

API exposing public statistics about Spark
Other
0 stars 1 forks source link

stats: refactor path handling #149

Closed juliangruber closed 3 months ago

juliangruber commented 3 months ago

In preparation for https://github.com/filecoin-station/spark-stats/pull/147#discussion_r1638158012, this makes the path handling more flexible (each route can use its own parsing logic, path segments can be parametrized) while keeping it short using the utility functions

juliangruber commented 3 months ago

Going ahead here now as this is blocking other work (fix scheduled rewards URL, add participant reward transfers) and there's a close ETA for Station Desktop. Hindsight please, @bajtos 🙏