environment('local')) { Route::get('/test/hello', [TestController::class, 'hello']); // 找个控制器为什么无效了 Route::get('/test/test1', [TestController::class, 'test1']); Route::get('/test/test2', [TestController::class, 'test2']); Route::get('/test/test3', [TestController::class, 'test3']); } Route::post('/api/article/receive/shadowrocketids', [ApiV1ArticlesController::class, 'receiveShadowrocketids']); Route::post('/api/article/receive/freenode', [ApiV1ArticlesController::class, 'receiveFreenode']); Route::post('/api/article/receive', [ApiV1ArticlesController::class, 'receive']); //Route::post('/api/freenode/receive', [ApiV1FreenodeController::class, 'receive']); Route::post('/api/article/find', [ApiV1ArticlesController::class, 'find']); Route::get('/', [ArticlesController::class, 'home']) ->name('articles.home'); Route::post('/like/{iId}', [ArticlesController::class, 'like'])->name('article.like'); Route::get('/search/{sKeyword}', [ArticlesController::class, 'search'])->where('sKeywords', '.*')->name('article.list.search'); //Route::get('/s/ajax/{sKeyword}', [ArticlesController::class, 'searchAjax'])->name('article.list.search.ajax'); Route::get('/tag/{sSlug}', [ArticlesController::class, 'listByTag'])->name('article.list.tag'); //Route::get('/tag/ajax/{sSlug}', [ArticlesController::class, 'listByTag'])->name('article.list.tag'); //Route::get("/cache/clear", [CacheController::class, 'clear']); // 保留 Route::any('/api/v1/telegram/hook', [HookController::class, 'cmd']); Route::get('/a/{sArticleSlug}.html', [ArticlesController::class, 'show']) ->name('article.show'); Route::get('/{sSlug1}', [ArticlesController::class, 'list']) ->name('articles.list'); Route::get('/{sSlug1}/{sSlug2?}', [ArticlesController::class, 'list']) ->name('articles.list'); //Route::get('/ajax/{sSlug1}/{sSlug2?}', [ArticlesController::class, 'listText']) // ->name('articles.list.text'); //Route::post('/ajax-handler', function () { // return response()->json(['sStatus' => 'success']); //})->name('ajax.handler');