harmony-one / explorer-v2-backend

12 stars 16 forks source link

Add REST API access key #75

Closed ArtemKolodko closed 2 years ago

ArtemKolodko commented 2 years ago

1) Added new env variable API_REST_ACCESS_KEY=

API_REST_ACCESS_KEY is an empty string by default. The api key will only work if the variable is set.

2) To access to REST API, add following header to every request: rest_api_key=<API_REST_ACCESS_KEY>