Skip to content

Commit a651922

Browse files
committed
fixed routes to new naming convention
1 parent c65c534 commit a651922

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

resources/views/partials/advanced-search/advanced-search.blade.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)