Files
new_haai/routes/web.php
2020-09-11 10:27:23 +08:00

29 lines
1.3 KiB
PHP

<?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!
|
*/
Route::get('/', 'IndexController@index')->name('index');
Route::get('articles/{category}/index', 'ArticleController@index')->name('article.index');
Route::get('articles/{article}', 'ArticleController@show')->name('article.show');
Route::get('search', 'ArticleController@search')->name('article.search');
Route::get('category/{category}/show', 'CategoryController@show')->name('category.show');//显示分类
Route::get('category/{category}/list', 'CategoryController@list')->name('category.list');//显示分类
Route::get('patents/{patent}/show', 'PatentController@show')->name('patents.show');
Route::get('patents/list', 'PatentController@list')->name('patents.list');
//以下为导入数据
Route::get('test/set_category', 'TestController@set_category');
Route::get('test/set_article', 'TestController@set_article');
Route::get('test/set_cate_article', 'TestController@setCateArticle');
Route::get('test/check_article', 'TestController@checkArticle');