Commit 0ccf39a3 authored by Nicolas Widart's avatar Nicolas Widart Committed by GitHub

Moving default laravel routes location

Feature/updated app routes
parents 2cfc904d 8220e20a
...@@ -5,3 +5,4 @@ Homestead.yaml ...@@ -5,3 +5,4 @@ Homestead.yaml
Homestead.json Homestead.json
.env .env
composer.lock composer.lock
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
namespace App\Providers; namespace App\Providers;
use Illuminate\Routing\Router; use Illuminate\Support\Facades\Route;
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider; use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
class RouteServiceProvider extends ServiceProvider class RouteServiceProvider extends ServiceProvider
...@@ -31,6 +31,8 @@ class RouteServiceProvider extends ServiceProvider ...@@ -31,6 +31,8 @@ class RouteServiceProvider extends ServiceProvider
*/ */
public function map() public function map()
{ {
// $this->mapWebRoutes();
// $this->mapApiRoutes();
} }
/** /**
* Define the "web" routes for the application. * Define the "web" routes for the application.
......
<?php
use Illuminate\Http\Request;
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/
Route::get('/user', function (Request $request) {
return $request->user();
})->middleware('auth:api');
<?php
use Illuminate\Foundation\Inspiring;
/*
|--------------------------------------------------------------------------
| Console Routes
|--------------------------------------------------------------------------
|
| This file is where you may define all of your Closure based console
| commands. Each Closure is bound to a command instance allowing a
| simple approach to interacting with each command's IO methods.
|
*/
Artisan::command('inspire', function () {
$this->comment(Inspiring::quote());
})->describe('Display an inspiring quote');
<?php
<?php
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| Application Routes | Web Routes
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| |
| Here is where you can register all of the routes for an application. | This file is where you may define all of the routes that are handled
| It's a breeze. Simply tell Laravel the URIs it should respond to | by your application. Just tell Laravel the URIs it should respond
| and give it the controller to call when that URI is requested. | to using a Closure or controller method. Build something great!
| |
*/ */
Route::get('/', function () { Route::get('/', function () {
return view('welcome'); return view('welcome');
}); });
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment