@@ -112,7 +112,7 @@ class FilterUIController {
112112 filter_data: filters,
113113 is_public: input .visibility === " public" ? true : false ,
114114 };
115- fetchFromBackend (' POST' , ' {{ route (' api.predefinedFilters .store' ) } }' , JSON .stringify (payload))
115+ fetchFromBackend (' POST' , ' {{ route (' api.predefined-filters .store' ) } }' , JSON .stringify (payload))
116116 .then ((response ) => {
117117 if (response .status === 201 ) {
118118 alert (" Filter stored successfully" );
@@ -165,7 +165,7 @@ class FilterUIController {
165165 is_public: input .visibility === " public" ? true : false ,
166166 };
167167
168- const updateUrlTemplate = ` {{ route (' api.predefinedFilters .update' , [' id' => ' __ID__' ]) } }` ;
168+ const updateUrlTemplate = ` {{ route (' api.predefined-filters .update' , [' id' => ' __ID__' ]) } }` ;
169169 const selectedFilterId = selectedFilter .id ; // JS context
170170 const finalUrl = updateUrlTemplate .replace (' __ID__' , selectedFilterId);
171171
@@ -216,7 +216,7 @@ class FilterUIController {
216216 }
217217
218218 fetchPredefinedFilterData (filterId ) {
219- const updateUrlTemplate = ` {{ route (' api.predefinedFilters .show' , [' id' => ' __ID__' ]) } }` ;
219+ const updateUrlTemplate = ` {{ route (' api.predefined-filters .show' , [' id' => ' __ID__' ]) } }` ;
220220 const finalUrl = updateUrlTemplate .replace (' __ID__' , filterId);
221221
222222 return fetchFromBackend (' GET' , finalUrl);
0 commit comments