...
|
...
|
@@ -66,10 +66,14 @@ Route::get('/blog', [\App\Http\Controllers\V2\Index::class,'blog']); |
|
|
Route::get('/blog/{id}', [\App\Http\Controllers\V2\Index::class,'blog_info'])->where('id','\d+');
|
|
|
// 单页
|
|
|
Route::get('/page/{key}', [\App\Http\Controllers\V2\Index::class,'page'])->where('key','[a-z_\-\d]{2,}');
|
|
|
// 单页的另一种方式
|
|
|
Route::get('/{key}', [\App\Http\Controllers\V2\Index::class,'page'])->where('key','[a-z_\-\d]{2,}');
|
|
|
|
|
|
|
|
|
// 跳转页面
|
|
|
Route::get('/redirect-{url}', [\App\Http\Controllers\Controller::class,'redirect']);
|
|
|
Route::get('/redirect', [\App\Http\Controllers\Controller::class,'redirect']);
|
|
|
|
|
|
|
|
|
// 单页的另一种方式 这个是通用的匹配
|
|
|
Route::get('/{key}', [\App\Http\Controllers\V2\Index::class,'page'])->where('key','[a-z_\-\d]{2,}');
|
|
|
|
|
|
|
|
|
|
...
|
...
|
|