1
0
Fork 0
mirror of synced 2024-06-02 19:04:49 +12:00

Added new continents route to locale service

This commit is contained in:
eldadfux 2019-10-21 11:14:32 +03:00
parent 66b043b980
commit f9384d45ac

View file

@ -70,7 +70,7 @@ $utopia->get('/v1/locale/countries')
->label('sdk.method', 'getCountries')
->label('sdk.description', '/docs/references/locale/get-countries.md')
->action(
function () use ($response, $request) {
function () use ($response) {
$list = Locale::getText('countries'); /* @var $list array */
asort($list);
@ -127,6 +127,23 @@ $utopia->get('/v1/locale/countries/phones')
}
);
$utopia->get('/v1/locale/continents')
->desc('List Countries')
->label('scope', 'locale.read')
->label('sdk.namespace', 'locale')
->label('sdk.method', 'getContinents')
->label('sdk.description', '/docs/references/locale/get-continents.md')
->action(
function () use ($response) {
$list = Locale::getText('continents'); /* @var $list array */
asort($list);
$response->json($list);
}
);
$utopia->get('/v1/locale/currencies')
->desc('List of currencies')
->label('scope', 'locale.read')