Use new FhcApiFactory Folder

This commit is contained in:
cgfhtw
2024-03-06 16:51:25 +01:00
parent f6427f57b8
commit f2ebf25640
4 changed files with 25 additions and 1 deletions
+7
View File
@@ -0,0 +1,7 @@
import search from "./search.js";
import phrasen from "./phrasen.js";
export default {
search,
phrasen
};
+5
View File
@@ -0,0 +1,5 @@
export default {
loadCategory(category) {
return this.$fhcApi.get('/api/frontend/v1/phrasen/loadModule/' + category);
}
};
+12
View File
@@ -0,0 +1,12 @@
export default {
search: function(searchsettings) {
const url = FHC_JS_DATA_STORAGE_OBJECT.app_root
+ 'index.ci.php/components/SearchBar/search';
return axios.post(url, searchsettings);
},
searchdummy: function(searchsettings) {
const url = FHC_JS_DATA_STORAGE_OBJECT.app_root
+ 'public/js/apps/api/dummyapi.php/Search';
return axios.post(url, searchsettings);
}
};
+1 -1
View File
@@ -1,5 +1,5 @@
import FhcAlert from './FhcAlert.js';
import FhcApiFactory from '../apps/api/fhcapifactory.js';
import FhcApiFactory from '../api/fhcapifactory.js';
export default {