main
Jing Li 2024-03-27 17:42:51 +08:00
parent b722b53f6f
commit 16ddda1eb9
3 changed files with 7 additions and 1 deletions

View File

@ -122,4 +122,9 @@ class StoreController extends AdminController
]);
return $this->baseDetail()->title('')->body([$detail]);
}
public function shareList()
{
return $this->service->listQuery()->get(['id', 'title']);
}
}

View File

@ -15,7 +15,7 @@ class CheckPermission
* @var array<int, string>
*/
protected $exceptPaths = [
//
'/api/*',
];
/**

View File

@ -121,6 +121,7 @@ Route::group([
$router->group([
'prefix' => 'api',
], function (Router $router) {
$router->get('stores', [StoreController::class, 'shareList']);
$router->get('keywords/tree-list', [KeywordController::class, 'getTreeList'])->name('api.keywords.tree-list');
});
});