Skip to content

Commit

Permalink
[] - Ajustado routing home
Browse files Browse the repository at this point in the history
  • Loading branch information
LeWricka committed May 24, 2021
1 parent 3348f2d commit bdc2ddd
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 21 deletions.
2 changes: 1 addition & 1 deletion src/app/Providers/RouteServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class RouteServiceProvider extends ServiceProvider
*
* @var string
*/
public const HOME = '/main';
public const HOME = '/';

/**
* The controller namespace for the application.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/views/components/footer.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<div class="content py-3">
<div class="row font-size-sm">
<div class="col-sm-6 order-sm-1 py-1 text-center text-sm-left">
<a class="font-w600" href="../main" target="_blank">ClimbingPlan</a> &copy; <span
<a class="font-w600" href="{{ route('calendar') }}" target="_blank">ClimbingPlan</a> &copy; <span
data-toggle="year-copy"></span>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/resources/views/components/navbar.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<div class="content-side">
<ul class="nav-main">
<li class="nav-main-item">
<a class="nav-main-link" href="/main">
<a class="nav-main-link" href="{{ route('calendar') }}">
<i class="nav-main-link-icon si si-calendar"></i>
<span class="nav-main-link-name">Calendar</span>
</a>
Expand Down
2 changes: 1 addition & 1 deletion src/resources/views/pages/dailySchedule.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ class="overlay-item item item-tiny item-circle border border-2x border-white bg-
<div class="d-flex align-items-center">
<!-- Toggle Sidebar -->
<!-- Layout API, functionality initialized in Template._uiApiLayout()-->
<button type="button" class="btn btn-sm btn-dual mr-2" onclick="location.href='/main'">
<button type="button" class="btn btn-sm btn-dual mr-2" onclick="location.href='{{ route('calendar') }}'">
<i class="fa fa-fw fa-arrow-circle-left"></i>
</button>
<!-- END Toggle Sidebar -->
Expand Down
18 changes: 1 addition & 17 deletions src/routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,6 @@
|
*/

Route::get('/', function () {
return view('welcome');
});

Route::get('/', CalendarController::class)->name('calendar');;
Route::get('/users', UserController::class);

// Example Routes
Route::view('/landing', 'landing');
Route::view('/login', 'pages.login');

Route::match(['get', 'post'], '/dashboard', function () {
return view('dashboard');
});
Route::view('/pages/slick', 'pages.slick');
Route::view('/pages/datatables', 'pages.datatables');
Route::view('/pages/blank', 'pages.blank');

Route::get('/main', CalendarController::class);
Route::get('/dailySchedule/{date}', DailyScheduleController::class);

0 comments on commit bdc2ddd

Please sign in to comment.