init: 项目初始代码
This commit is contained in:
67
app/index/route/v1.php
Normal file
67
app/index/route/v1.php
Normal file
@@ -0,0 +1,67 @@
|
||||
<?php
|
||||
use think\facade\Route;
|
||||
|
||||
Route::get('/','\\app\\index\\controller\\Index@index');
|
||||
|
||||
Route::group('index',function () {
|
||||
/**
|
||||
* 前台访问日志监控提交kafka
|
||||
*/
|
||||
Route::group('base',function () {
|
||||
Route::post('submitActionLog','Base@submitActionLog');
|
||||
Route::post('sal','Base@submitActionLog');
|
||||
});
|
||||
/**
|
||||
* 首页
|
||||
*/
|
||||
Route::group('index',function (){
|
||||
Route::get('/','Index@index');
|
||||
Route::get('index','Index@index');
|
||||
});
|
||||
|
||||
/**
|
||||
* 关于我们
|
||||
*/
|
||||
Route::group('about',function () {
|
||||
Route::get('/','About@index');
|
||||
Route::get('index','About@index');
|
||||
});
|
||||
/**
|
||||
* 产品
|
||||
*/
|
||||
Route::group('goods',function () {
|
||||
Route::get('/','Goods@index');
|
||||
Route::get('index','Goods@index');
|
||||
Route::get('detail','Goods@detail');
|
||||
});
|
||||
/**
|
||||
* 联系我们
|
||||
*/
|
||||
Route::group('contact',function () {
|
||||
Route::get('/','Contact@index');
|
||||
Route::get('index','Contact@index');
|
||||
});
|
||||
/**
|
||||
* 关于我们
|
||||
*/
|
||||
Route::group('about',function () {
|
||||
Route::get('/','About@index');
|
||||
Route::get('index','About@index');
|
||||
});
|
||||
/**
|
||||
* 下载
|
||||
*/
|
||||
Route::group('download',function () {
|
||||
Route::get('/','Download@index');
|
||||
Route::get('index','Download@index');
|
||||
});
|
||||
/**
|
||||
* 行为日志
|
||||
*/
|
||||
Route::group('action',function () {
|
||||
Route::get('submit_action_log','Action@submitActionLog');
|
||||
});
|
||||
|
||||
})->prefix('\\app\\index\\controller\\')->middleware([
|
||||
app\index\middleware\Auth::class
|
||||
]);
|
||||
Reference in New Issue
Block a user