TaoLer/app/index/route/route.php

33 lines
1.3 KiB
PHP
Raw Normal View History

2020-01-01 13:17:19 +08: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;
2020-04-22 18:37:53 +08:00
Route::get('captcha/[:config]','\\think\\captcha\\CaptchaController@index');
2020-01-01 13:17:19 +08:00
Route::rule('/', 'index'); // 首页访问路由
Route::group(function () {
Route::get('jie/:id', 'article/detail');
Route::get('column/<ename?>/<type?>/<page?>','article/cate');
Route::rule('add','article/add');
2020-01-06 16:31:30 +08:00
Route::rule('edit/[:id]','article/edit');
2020-01-09 18:03:33 +08:00
//Route::rule('del/:id','article/delete');
2020-01-01 13:17:19 +08:00
});
Route::group(function () {
Route::rule('u/:id', 'user/home');
});
Route::rule('login','login/index');
2020-01-17 14:57:05 +08:00
Route::rule('forget','login/forget');
Route::rule('postcode','login/postcode');
Route::rule('respass','login/respass');
2020-01-01 13:17:19 +08:00
Route::rule('reg','Login/reg')
->middleware(\app\middleware\CheckRegister::class);
Route::rule('search/[:keywords]', 'index/search'); // 搜索
2020-01-01 13:17:19 +08:00