mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-24 02:12:17 +00:00
fix(news Widget api): readds the removed api call from the news widget because it differs from the getNews api call that is used in the News View
This commit is contained in:
@@ -11,6 +11,7 @@ export default {
|
||||
);
|
||||
},
|
||||
|
||||
//api function used for the news View that renders the html
|
||||
getNews(page = 1, page_size = 10) {
|
||||
return this.$fhcApi.get(
|
||||
"/api/frontend/v1/Cms/getNews",
|
||||
@@ -21,6 +22,16 @@ export default {
|
||||
);
|
||||
},
|
||||
|
||||
//api function used for the widget component
|
||||
news(limit) {
|
||||
return this.$fhcApi.get(
|
||||
"/api/frontend/v1/Cms/news",
|
||||
{
|
||||
limit: limit
|
||||
}
|
||||
);
|
||||
},
|
||||
|
||||
getNewsRowCount: function () {
|
||||
return this.$fhcApi.get(
|
||||
"/api/frontend/v1/Cms/getNewsRowCount",
|
||||
|
||||
Reference in New Issue
Block a user