Skip to content

Commit

Permalink
Merge pull request #122 from rsksmart/feature/explorer-api-v2
Browse files Browse the repository at this point in the history
feat: include package version in health check response
  • Loading branch information
ezequiel-rodriguez authored Dec 21, 2023
2 parents 24ab783 + 803cfa2 commit 1b2baba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/api/Api.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { filterParams, getDelayedFields, MODULES } from './lib/apiTools'
import config from '../lib/config'
// It is used only in case Stats cannot provide the circulating supply
import getCirculatingSupply from './lib/getCirculatingSupply'
import pckgJson from '../../package.json'

class Api extends DataCollector {
constructor ({ initConfig, log }, { modules, lastBlocks } = {}) {
Expand Down Expand Up @@ -63,7 +64,7 @@ class Api extends DataCollector {
info () {
const info = {
apiName: 'RSK Explorer API',
version: process.env.npm_package_version,
version: pckgJson.version,
modules: config.api.modules,
txTypes: Object.assign({}, txTypes)
}
Expand Down

0 comments on commit 1b2baba

Please sign in to comment.