Skip to content

Commit

Permalink
统一路由命名
Browse files Browse the repository at this point in the history
  • Loading branch information
Yurunsoft committed Sep 26, 2023
1 parent 5f023c3 commit 4f43db6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions admin/src/service/api/config.ts
Original file line number Diff line number Diff line change
@@ -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<Api.BaseResponse>('/config/admin/save', {
return request.post<Api.BaseResponse>('/admin/config/save', {
data
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()]
Expand Down

0 comments on commit 4f43db6

Please sign in to comment.