# Global data request
GET, OPTIONS /:lang?/global-data
```json
{
"header": {},
"footer": {},
"locales": [
{
"locale": "en",
"label": "en",
"current": false,
"default": true
},
{
"locale": "ru",
"label": "ru",
"current": true,
"default": false
},
{
"locale": "uk",
"label": "ua",
"current": false,
"default": false
}
],
"scripts": {
"head": "",
"bodyTop": "",
"bodyBottom": ""
}
}
```
- *header, footer* - необязательные поля, обычно содержат в себе список меню, лого, мелкие переводы кнопок.
- *locales* - обязательный ключ, содержит список всех доступных языков на проекте
- *scripts* - обязательный ключ, скрипты загруженные с админпанели. Каждый скрипт это строка вида:
# Page data request
GET, OPTIONS /:lang/page/home
- *lang* - обязательный параметр, в запросе на страницу всегда будет языковой параметр.
##### response:
```json
{
"seo": {
"title": "Home page",
"description": "Sample description",
"keywords": "nuxt, vue, component",
"image": "/img/social.png"
},
"components": [
{
"componentName": "TestComponent",
"options": {
"title": "Hello world!"
}
}
]
}
```
- *seo* -