spacemeshos / explorer-backend

Spacemesh explorer backend designed to provide data for explorer-frontends
GNU General Public License v3.0
6 stars 2 forks source link

refactor of api #23

Closed abergasov closed 1 year ago

abergasov commented 2 years ago

closes #21

reading from mongoDB moved to separated package storagereader. this allow use special user with read-only credentials, for serving api binary.

routing was simplified, minimum logic in routes - just parse parameter and provide it to service. self-written wrappers for http will be dropped in separate pr

service contain some caching for requests which are happens often (/network-info)