feat: Implement core backend server with file upload, monitoring, S2A API proxy, and team processing features.

This commit is contained in:
2026-01-30 10:15:31 +08:00
parent cefbb2f38f
commit 38dde08648
5 changed files with 307 additions and 32 deletions

View File

@@ -120,13 +120,10 @@ export default function Upload() {
try {
const text = await file.text()
const json = JSON.parse(text)
const accounts = Array.isArray(json) ? json : [json]
const res = await fetch('/api/upload/validate', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ accounts }),
body: JSON.stringify({ content: text, filename: file.name }),
})
const data = await res.json()