Skip to content

Commit

Permalink
#88 remove hardcoded route (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
djped authored Nov 4, 2024
1 parent e3151f1 commit e62fa4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/views/components/search.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
async performSearch(query) {
this.loading = true;
try {
const response = await fetch(`/prezet/search?q=${encodeURIComponent(query)}`, {
const response = await fetch(`{{route('prezet.search')}}?q=${encodeURIComponent(query)}`, {
headers: {
'Content-Type': 'application/json'
}
Expand Down

0 comments on commit e62fa4a

Please sign in to comment.