Skip to content

Commit

Permalink
First test
Browse files Browse the repository at this point in the history
  • Loading branch information
ouegy committed Nov 26, 2024
1 parent 7313d34 commit 6059b13
Showing 1 changed file with 25 additions and 23 deletions.
48 changes: 25 additions & 23 deletions routes/web.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php

use App\Http\Controllers\HomeController;
use Illuminate\Support\Facades\Route;

/*
Expand All @@ -15,6 +16,7 @@

// Task 1: point the main "/" URL to the HomeController method "index"
// Put one code line here below
Route::view('/', [HomeController::class, 'index']);


// Task 2: point the GET URL "/user/[name]" to the UserController method "show"
Expand All @@ -36,48 +38,48 @@
// Assign middleware "auth"
// Put one Route Group code line here below

// Tasks inside that Authenticated group:
// Tasks inside that Authenticated group:

// Task 6: /app group within a group
// Add another group for routes with prefix "app"
// Put one Route Group code line here below
// Task 6: /app group within a group
// Add another group for routes with prefix "app"
// Put one Route Group code line here below

// Tasks inside that /app group:
// Tasks inside that /app group:


// Task 7: point URL /app/dashboard to a "Single Action" DashboardController
// Assign the route name "dashboard"
// Put one Route Group code line here below
// Task 7: point URL /app/dashboard to a "Single Action" DashboardController
// Assign the route name "dashboard"
// Put one Route Group code line here below


// Task 8: Manage tasks with URL /app/tasks/***.
// Add ONE line to assign 7 resource routes to TaskController
// Put one code line here below
// Task 8: Manage tasks with URL /app/tasks/***.
// Add ONE line to assign 7 resource routes to TaskController
// Put one code line here below

// End of the /app Route Group
// End of the /app Route Group


// Task 9: /admin group within a group
// Add a group for routes with URL prefix "admin"
// Assign middleware called "is_admin" to them
// Put one Route Group code line here below
// Task 9: /admin group within a group
// Add a group for routes with URL prefix "admin"
// Assign middleware called "is_admin" to them
// Put one Route Group code line here below


// Tasks inside that /admin group:
// Tasks inside that /admin group:


// Task 10: point URL /admin/dashboard to a "Single Action" Admin/DashboardController
// Put one code line here below
// Task 10: point URL /admin/dashboard to a "Single Action" Admin/DashboardController
// Put one code line here below


// Task 11: point URL /admin/stats to a "Single Action" Admin/StatsController
// Put one code line here below
// Task 11: point URL /admin/stats to a "Single Action" Admin/StatsController
// Put one code line here below


// End of the /admin Route Group
// End of the /admin Route Group

// End of the main Authenticated Route Group

// One more task is in routes/api.php

require __DIR__.'/auth.php';
require __DIR__ . '/auth.php';

0 comments on commit 6059b13

Please sign in to comment.