fix:add cors add users route
Some checks failed
Deploy to Staging / deploy (push) Has been cancelled
Lint Backend / lint-backend (push) Has been cancelled
Playwright Tests / changes (push) Has been cancelled
Playwright Tests / test-playwright (1, 4) (push) Has been cancelled
Playwright Tests / test-playwright (2, 4) (push) Has been cancelled
Playwright Tests / test-playwright (3, 4) (push) Has been cancelled
Playwright Tests / test-playwright (4, 4) (push) Has been cancelled
Playwright Tests / merge-playwright-reports (push) Has been cancelled
Playwright Tests / alls-green-playwright (push) Has been cancelled
Test Backend / test-backend (push) Has been cancelled
Test Docker Compose / test-docker-compose (push) Has been cancelled

This commit is contained in:
bbh
2025-08-05 09:10:56 +08:00
parent 649d1a6ed7
commit b42018e1f4
2 changed files with 8 additions and 0 deletions

View File

@@ -32,6 +32,13 @@ router = APIRouter(prefix="/users", tags=["users"])
def test_user():
return {"ok":"yes is"}
@router.get('/testsync2')
def test_user():
return {"ok":"yes is"}
@router.get(
"/",
dependencies=[Depends(get_current_active_superuser)],

View File

@@ -44,6 +44,7 @@ class Settings(BaseSettings):
] = [
"http://dashboard.daheimao.top",
"https://dashboard.daheimao.top",
"http://120.76.41.122:5173"
]
@computed_field # type: ignore[prop-decorator]