TaoLer/app/admin/route/route.php
2022-08-02 21:13:36 +08:00

23 lines
637 B
PHP

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