ethpandaops / dora

Dora the Explorer is a lightweight slot explorer for the ethereum beaconchain
https://beaconlight.ephemery.dev/
GNU General Public License v3.0
79 stars 26 forks source link

Add json content handler for /forks #136

Closed 0xTylerHolmes closed 1 month ago

0xTylerHolmes commented 1 month ago

I've been using Dora for some testing and really like exposing the /forks page to allow dumping the forks as JSON. I would be eager to have this merged. Do you have any recommendations?

pk910 commented 1 month ago

Heya @0xTylerHolmes, thanks for your PR. I think it looks fine for this page :)

These page models are normally not intended to be served as json, because they contain sensitive information in other pages. However, for the forks page it's fine, but we might change it in future if we add proper api routes.