Skip to content

Commit

Permalink
Use url helpers (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
indykoning authored Jul 4, 2023
1 parent 343f117 commit ed49c6e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"prefer-stable": true,
"require": {
"php": "^8.0|^8.1",
"rapidez/core": "~0.77",
"rapidez/account": "*"
"rapidez/core": "~0.91|^1.0",
"rapidez/account": ">=0.13.3"
},
"autoload": {
"psr-4": {
Expand Down
2 changes: 1 addition & 1 deletion resources/js/eventlisteners.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ document.addEventListener('turbo:load', () => {
}

window.axios.defaults.headers.common['Authorization'] = `Bearer ${localStorage.token}`;
await window.axios.post('/api/product-alerts').then((res) => localStorage.alerts = res.data)
await window.axios.post(window.url('/api/product-alerts')).then((res) => localStorage.alerts = res.data)
}
});
2 changes: 1 addition & 1 deletion resources/views/subscribe-form.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</div>
</graphql-mutation>
<div v-else class="inline-block">
<x-rapidez::button href="/login" class="flex items-center" dusk="product-alert-login">
<x-rapidez::button :href="route('account.login')" class="flex items-center" dusk="product-alert-login">
<span>@lang('Log in to be notified when this product is in stock')</span>
</x-rapidez::button>
</div>

0 comments on commit ed49c6e

Please sign in to comment.