feat: Initialize the core backend API server, frontend application structure, and implement batch RT import functionality.
This commit is contained in:
@@ -186,6 +186,11 @@ func startServer(cfg *config.Config) {
|
||||
// Owner 降级 API
|
||||
mux.HandleFunc("/api/demote/owner", api.CORS(api.HandleDemoteOwner))
|
||||
|
||||
// 批量 RT 导入 API
|
||||
mux.HandleFunc("/api/rt-import/start", api.CORS(api.HandleRTImportStart))
|
||||
mux.HandleFunc("/api/rt-import/status", api.CORS(api.HandleRTImportStatus))
|
||||
mux.HandleFunc("/api/rt-import/stop", api.CORS(api.HandleRTImportStop))
|
||||
|
||||
// 嵌入的前端静态文件
|
||||
if web.IsEmbedded() {
|
||||
webFS := web.GetFileSystem()
|
||||
|
||||
Reference in New Issue
Block a user