TaoLer/app/admin/route/route.php

19 lines
576 B
PHP
Raw Normal View History

2020-01-01 13:17:19 +08:00
<?php
/*
* @Author: TaoLer <alipey_tao@qq.com>
* @Date: 2021-12-06 16:04:50
* @LastEditTime: 2022-04-19 14:31:41
* @LastEditors: TaoLer
* @Description: 搜索引擎SEO优化设置
* @FilePath: \TaoLer\app\admin\route\route.php
* Copyright (c) 2020~2022 http://www.aieok.com All rights reserved.
*/
2020-01-01 13:17:19 +08:00
use think\facade\Route;
//详情页URL别称
$detail_as = config('taoler.url_rewrite.article_as');
2020-01-01 13:17:19 +08:00
Route::get('captcha/[:config]','\\think\\captcha\\CaptchaController@index');
Route::get($detail_as.'/:id', '\app\index\controller\Article::detail')->name('detail_id');