2020-01-01 13:17:19 +08:00
|
|
|
<?php
|
2022-04-19 17:26:10 +08:00
|
|
|
/*
|
2022-08-02 20:46:01 +08:00
|
|
|
* @Author: TaoLer <alipay_tao@qq.com>
|
2022-04-19 17:26:10 +08:00
|
|
|
* @Date: 2021-12-06 16:04:50
|
2022-08-16 15:29:04 +08:00
|
|
|
* @LastEditTime: 2022-08-15 16:17:32
|
2022-04-19 17:26:10 +08:00
|
|
|
* @LastEditors: TaoLer
|
2022-08-02 20:46:01 +08:00
|
|
|
* @Description: admin路由配置
|
2022-08-16 15:29:04 +08:00
|
|
|
* @FilePath: \TaoLer\app\admin\route\route.php
|
2022-08-02 20:46:01 +08:00
|
|
|
* Copyright (c) 2020~2022 https://www.aieok.com All rights reserved.
|
2022-04-19 17:26:10 +08:00
|
|
|
*/
|
2020-01-01 13:17:19 +08:00
|
|
|
use think\facade\Route;
|
2022-04-19 17:26:10 +08:00
|
|
|
|
2022-08-02 18:46:05 +08:00
|
|
|
// 动态详情页URL别称
|
2022-04-19 17:26:10 +08:00
|
|
|
$detail_as = config('taoler.url_rewrite.article_as');
|
2020-01-01 13:17:19 +08:00
|
|
|
|
|
|
|
Route::get('captcha/[:config]','\\think\\captcha\\CaptchaController@index');
|
2022-08-02 21:13:36 +08:00
|
|
|
Route::get("$detail_as<id>$", '\app\index\controller\Article@detail')
|
|
|
|
->pattern([
|
|
|
|
//'name' => '\w+',
|
|
|
|
'id' => '\d+',
|
|
|
|
])
|
|
|
|
->name('article_detail');
|
2022-08-16 15:29:04 +08:00
|
|
|
|
|
|
|
|