Skip to content

Commit

Permalink
Cleanup : remove routes with missing controllers.
Browse files Browse the repository at this point in the history
  • Loading branch information
csavelief committed Aug 13, 2024
1 parent 399a172 commit 4930885
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 24 deletions.
2 changes: 0 additions & 2 deletions app/Http/Middleware/VerifyCsrfToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ class VerifyCsrfToken extends Middleware
'/payment/netopia/*',
'/payment/paypal/*',
'/payment/adyen/*',
'/payment/stripe/*',
'/payment/simplepay/*',
'/payment/braintree/*',
'/payment/mollie/*',
'/metrics',
Expand Down
28 changes: 15 additions & 13 deletions resources/views/layouts/app.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,6 @@

<!-- Right Side Of Navbar -->
<ul class="navbar-nav ms-auto">
<li class="nav-item">
<a class="nav-link" href="{{ route('product.index') }}">Store</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{{ route('cart.show') }}">Cart
@if (Cart::isNotEmpty())
<span class="tw-pill rounded-pill bg-secondary">{{ Cart::itemCount() }}</span>
@endif
</a>
</li>
<!-- Authentication Links -->
@guest
<li class="nav-item">
Expand All @@ -74,7 +64,17 @@
</li>
@else
<li class="nav-item">
<a class="nav-link" href="{{ route('home') }}">Home</a>
<a class="nav-link" href="{{ route('product.index') }}">Store</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{{ route('cart.show') }}">Cart
@if (Cart::isNotEmpty())
<span class="tw-pill rounded-pill bg-secondary">{{ Cart::itemCount() }}</span>
@endif
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{{ route('home') }}">Home</a>
</li>
@if(Auth::user()->isAdmin())
<li class="nav-item">
Expand Down Expand Up @@ -112,7 +112,9 @@
</nav>

<main class="py-4">

@guest
<!-- COMING SOON -->
@else
<div class="container">
<div class="row">
<div class="col-md-9 d-flex align-items-center">
Expand All @@ -130,7 +132,7 @@
@include('flash::message')
</div>
</div>

@endguest
@yield('content')
</main>
</div>
Expand Down
9 changes: 0 additions & 9 deletions routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -315,11 +315,6 @@
Route::any('webhook', 'PaypalReturnController@webhook')->name('webhook');
});

Route::group(['prefix' => 'payment/simplepay', 'as' => 'payment.simplepay.'], function () {
Route::get('return', 'SimplepayReturnController@return')->name('return');
Route::post('silent', 'SimplepayReturnController@silent')->name('silent');
});

Route::group(['prefix' => 'payment/mollie', 'as' => 'payment.mollie.'], function () {
Route::get('{paymentId}/return', 'MollieController@return')->name('return');
Route::post('webhook', 'MollieController@webhook')->name('webhook');
Expand All @@ -333,7 +328,3 @@
Route::group(['prefix' => 'payment/braintree', 'as' => 'payment.braintree.'], function () {
Route::post('{paymentId}/submit', 'BraintreeController@submit')->name('submit');
});

Route::group(['prefix' => 'payment/stripe', 'as' => 'payment.stripe.'], function () {
Route::post('webhook', 'StripeReturnController@webhook');
});

0 comments on commit 4930885

Please sign in to comment.