Skip to content

Commit 05e9278

Browse files
dvlppaguingand
andauthored
Global filter handler for api routes (#671)
* Add {filterKey} in API routes * Fix tests * Fix tests for CI * Fix tests for CI * Fix tests for CI * Add test for API * fix autocomplete remote filter --------- Co-authored-by: antoine <guingand.antoine@gmail.com>
1 parent f8c6cae commit 05e9278

42 files changed

Lines changed: 747 additions & 184 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
},
6363
"scripts": {
6464
"test": "vendor/bin/pest --parallel",
65-
"typescript:generate": "php demo/artisan ziggy:generate --types-only; php demo/artisan typescript:transform",
65+
"typescript:generate": "php demo/artisan sharp:typescript-generate",
6666
"post-autoload-dump": [
6767
"git config core.hooksPath scripts/hooks"
6868
]

resources/js/filters/components/filters/AutocompleteRemoteFilter.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
api.post(
3535
route('code16.sharp.api.filters.autocomplete.index', {
3636
entityKey: props.entityKey,
37-
filterKey: props.filter.key,
37+
filterHandlerKey: props.filter.key,
3838
query,
3939
}),
4040
{},

0 commit comments

Comments
 (0)