first push
This commit is contained in:
27
routes/web.php
Normal file
27
routes/web.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Web Routes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here is where you can register web routes for your application. These
|
||||
| routes are loaded by the RouteServiceProvider within a group which
|
||||
| contains the "web" middleware group. Now create something great!
|
||||
|
|
||||
*/
|
||||
|
||||
use Illuminate\Routing\Router;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
|
||||
Route::group([
|
||||
'namespace' => 'App\Http\Controllers',
|
||||
], function (Router $router) {
|
||||
|
||||
$router->get('/', 'IndexController@index')->name('index');
|
||||
$router->get('articles/{article}', 'ArticleController@show')->name('article.show');
|
||||
|
||||
$router->get('category/{category}/show', 'CategoryController@show')->name('category.show');//显示分类
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user