From 4f43db6e38a7d0602c743ec0788407432754c080 Mon Sep 17 00:00:00 2001 From: Yurun Date: Tue, 26 Sep 2023 15:56:31 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=9F=E4=B8=80=E8=B7=AF=E7=94=B1=E5=91=BD?= =?UTF-8?q?=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/src/service/api/config.ts | 4 ++-- server/Module/Config/ApiController/Admin/ConfigController.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/admin/src/service/api/config.ts b/admin/src/service/api/config.ts index 288874e..72ba7a0 100644 --- a/admin/src/service/api/config.ts +++ b/admin/src/service/api/config.ts @@ -1,11 +1,11 @@ import { request } from '../request'; export async function getConfig() { - return request.get('/config/admin/get'); + return request.get('/admin/config/get'); } export async function saveConfig(data: any) { - return request.post('/config/admin/save', { + return request.post('/admin/config/save', { data }); } diff --git a/server/Module/Config/ApiController/Admin/ConfigController.php b/server/Module/Config/ApiController/Admin/ConfigController.php index c272387..9d24e89 100644 --- a/server/Module/Config/ApiController/Admin/ConfigController.php +++ b/server/Module/Config/ApiController/Admin/ConfigController.php @@ -12,7 +12,7 @@ use Imi\Server\Http\Route\Annotation\Route; use Imi\Util\Http\Consts\RequestMethod; -#[Controller(prefix: '/config/admin/')] +#[Controller(prefix: '/admin/config/')] class ConfigController extends \Imi\Server\Http\Controller\HttpController { #[Inject()]