2016-02-27

Meteor - Settings.json split for privacy (client, server or both)

{
  "public": {
        "PUBLIC-VAR-1": "Available to both CLIENT and SERVER."
        , "PUBLIC-VAR-2": "Public var 2 contents."
  }

  , "private": {
        "PRIVATE-VAR-1": "Available to only the SERVER ONLY (not to the client)."
        , "PRIVATE-VAR-2": "Private var 1 contents."
  }
  , "ROOT-LEVEL-VAR-1": "Available to the SERVER ONLY."
  , "ROOT-LEVEL-VAR-2": "Root level var 2, only seen by the server."
}

No comments:

Post a Comment