generated from liutk/owl-admin-base
Update
parent
b722b53f6f
commit
16ddda1eb9
|
|
@ -122,4 +122,9 @@ class StoreController extends AdminController
|
|||
]);
|
||||
return $this->baseDetail()->title('')->body([$detail]);
|
||||
}
|
||||
|
||||
public function shareList()
|
||||
{
|
||||
return $this->service->listQuery()->get(['id', 'title']);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ class CheckPermission
|
|||
* @var array<int, string>
|
||||
*/
|
||||
protected $exceptPaths = [
|
||||
//
|
||||
'/api/*',
|
||||
];
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue