Files
FHC-Core/public/js/api/cms.js
T
2026-08-20 17:05:38 +02:00

25 lines
656 B
JavaScript

export default {
content(content_id, version = null, sprache = null, sichtbar = null) {
return this.$fhcApi.get('/api/frontend/v1/Cms/content', {
content_id: content_id,
...(version ? { version } : {}),
...(sprache ? { sprache } : {}),
...(sichtbar ? { sichtbar } : {}),
});
},
//api function used for the news View that renders the html
getNews(page = 1, page_size = 10, sprache) {
return this.$fhcApi.get('/api/frontend/v1/Cms/getNews', {
page,
page_size,
sprache,
});
},
//api function used for the widget component
news(limit) {
return this.$fhcApi.get('/api/frontend/v1/Cms/news', {
limit: limit,
});
},
};