defaults('sSlug', 'freenode') ->name('articles.home'); Route::get('/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::get('/hello', [TestController::class, 'hello']); //Route::post('/ajax-handler', function () { // return response()->json(['sStatus' => 'success']); //})->name('ajax.handler');