chaoyu/route/app.php

27 lines
974 B
PHP
Raw Normal View History

2022-09-16 03:44:40 +00:00
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;
Route::get('article/:id', "article/detail");
Route::get('articles/:category_id', "article/index");
Route::get('page/:category_id', "page/index");
Route::rule('products', 'article/index')->name('products.search'); // 产品查询
Route::rule('news', 'article/index')->name('news.search'); // 新闻查询
Route::post('message/add', 'message/add');