curl -X GET http://127.0.0.1:3001/languages
[
{
"code": "ru",
"name": "Русский"
},
{
"code": "en",
"name": "English"
}
]
curl -X GET http://127.0.0.1:3001/languages?lang=ru
[
{
"code": "ru",
"name": "Русский"
},
{
"code": "en",
"name": "Английский"
}
]
curl -X GET http://127.0.0.1:3001/languages?lang=en
[
{
"code": "ru",
"name": "Russian"
},
{
"code": "en",
"name": "English"
}
]
примерно так