Browse Source

configure language service from placeholder definition

pull/936/head
Stephen Hess 7 years ago
parent
commit
f8f1923c0e
  1. 2
      routes/v1.js

2
routes/v1.js

@ -115,7 +115,7 @@ function addRoutes(app, peliasConfig) {
const placeholderService = serviceWrapper(placeholderConfiguration);
const isPlaceholderServiceEnabled = _.constant(placeholderConfiguration.isEnabled());
const changeLanguageConfiguration = new Language(_.defaultTo(peliasConfig.api.services.language, {}));
const changeLanguageConfiguration = new Language(_.defaultTo(peliasConfig.api.services.placeholder, {}));
const changeLanguageService = serviceWrapper(changeLanguageConfiguration);
const isChangeLanguageEnabled = _.constant(changeLanguageConfiguration.isEnabled());

Loading…
Cancel
Save