Skip to content

Commit dc79971

Browse files
committed
refactor(routes): remove ConfigApi routes and related service
1 parent d0c8d99 commit dc79971

File tree

3 files changed

+1
-151
lines changed

3 files changed

+1
-151
lines changed

backend/super-magic-module/config/routes-v1/super-agent.php

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
* Copyright (c) The Magic , Distributed under the software license
66
*/
77
use Dtyq\SuperMagic\Interfaces\SuperAgent\Facade\AccountApi;
8-
use Dtyq\SuperMagic\Interfaces\SuperAgent\Facade\ConfigApi;
98
use Dtyq\SuperMagic\Interfaces\SuperAgent\Facade\FileApi;
109
use Dtyq\SuperMagic\Interfaces\SuperAgent\Facade\WorkspaceApi;
1110
use Dtyq\SuperMagic\Interfaces\SuperAgent\Facade\TopicApi;
@@ -54,11 +53,6 @@
5453
Router::post('/init', [AccountApi::class, 'initAccount']);
5554
});
5655

57-
// 配置相关
58-
Router::addGroup('/config', static function () {
59-
// 检查是否应该重定向到SuperMagic
60-
Router::get('/should-redirect', [ConfigApi::class, 'shouldRedirectToSuperMagic']);
61-
});
6256
},
6357
['middleware' => [RequestContextMiddlewareV2::class]]
6458
);
@@ -69,7 +63,7 @@
6963
Router::addGroup('/topics', static function () {
7064
Router::post('/{id}/attachments', [TopicApi::class, 'getTopicAttachments']);
7165
});
72-
66+
7367
// 获取任务附件
7468
Router::post('/tasks/get-file-url', [TaskApi::class, 'getFileUrls']);
7569
// 投递消息
@@ -83,4 +77,3 @@
8377
Router::post('/process-attachments', [FileApi::class, 'processAttachments']);
8478
});
8579
});
86-

backend/super-magic-module/src/Application/SuperAgent/Service/ConfigAppService.php

Lines changed: 0 additions & 100 deletions
This file was deleted.

backend/super-magic-module/src/Interfaces/SuperAgent/Facade/ConfigApi.php

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)