Skip to content

Commit

Permalink
Merge pull request #2343 from ChainSafe/P0/config-api-cli
Browse files Browse the repository at this point in the history
add config api namespace to api options for api.rest.api
  • Loading branch information
3xtr4t3rr3str14l authored Apr 8, 2021
2 parents e481a84 + 1fafc07 commit 393836d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/cli/src/options/beaconNodeOptions/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function parseArgs(args: IApiArgs): IBeaconNodeOptions["api"] {
export const options: ICliCommandOptions<IApiArgs> = {
"api.rest.api": {
type: "array",
choices: ["beacon", "validator", "node", "events", "debug", "lodestar"],
choices: ["beacon", "config", "validator", "node", "events", "debug", "lodestar"],
description: "Pick namespaces to expose for HTTP API",
defaultDescription: JSON.stringify(defaultOptions.api.rest.api),
group: "api",
Expand Down
2 changes: 1 addition & 1 deletion packages/lodestar/src/api/rest/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export interface IRestApiOptions {
export const defaultApiRestOptions: IRestApiOptions = {
enabled: false,
// ApiNamespace.DEBUG is not turned on by default
api: [ApiNamespace.BEACON, ApiNamespace.NODE, ApiNamespace.VALIDATOR, ApiNamespace.EVENTS],
api: [ApiNamespace.BEACON, ApiNamespace.CONFIG, ApiNamespace.NODE, ApiNamespace.VALIDATOR, ApiNamespace.EVENTS],
host: "127.0.0.1",
port: 9596,
cors: "*",
Expand Down

0 comments on commit 393836d

Please sign in to comment.