huwhois 2 лет назад
Родитель
Сommit
2dd95e4d05
1 измененных файлов с 0 добавлено и 45 удалено
  1. 0 45
      app/index/route/app.php

+ 0 - 45
app/index/route/app.php

@@ -1,47 +1,3 @@
-<<<<<<< HEAD
-<?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;
-use app\common\model\Category;
-use think\facade\Template;
-
-Route::pattern([
-    'name' => '\w+',
-    'id' => '\d+',
-    'cid' => '\d+',
-    'page' => '\d+',
-    'year' => '\d+',
-    'month' => '\d+',
-    'day' => '\d+',
-]); 
-
-Route::get('/index', 'index/index/index');
-Route::get('/', 'index/index/index');
-Route::view('/404', '404');
-Route::get('/about', 'index/index/about')->append(['_aside' => true]);
-Route::get('/guest_book', 'index/index/guestBook');
-Route::post('/save_guest_book', 'index/index/saveGuestBook');
-
-Route::get('/tags/:name', 'index/article/tags');
-Route::get('/all-<page?>', 'index/article/index')->append(['cid' => 0]);
-Route::post('/dolike', 'index/article/dolike');
-Route::get('/:year/<month>-<day>/:id', 'index/article/read');
-Route::get('/:year/<month>-<page?>', 'index/article/archive');
-
-$list = Category::getList();
-
-foreach ($list as $key => $value) {
-    Route::get($value->url . '-<page?>', $value->route)->append(['cid' => $value->id]);
-}
-=======
 <?php
 // +----------------------------------------------------------------------
 // | ThinkPHP [ WE CAN DO IT JUST THINK ]
@@ -85,4 +41,3 @@ $list = Category::getList();
 foreach ($list as $key => $value) {
     Route::get($value->url . '-<page?>', $value->route)->append(['cid' => $value->id]);
 }
->>>>>>> 78b76253c8ce5873016cf837373af5e30ac80c86