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
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:
@@ -32,6 +32,13 @@ router = APIRouter(prefix="/users", tags=["users"])
|
|||||||
def test_user():
|
def test_user():
|
||||||
return {"ok":"yes is"}
|
return {"ok":"yes is"}
|
||||||
|
|
||||||
|
|
||||||
|
@router.get('/testsync2')
|
||||||
|
def test_user():
|
||||||
|
return {"ok":"yes is"}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@router.get(
|
@router.get(
|
||||||
"/",
|
"/",
|
||||||
dependencies=[Depends(get_current_active_superuser)],
|
dependencies=[Depends(get_current_active_superuser)],
|
||||||
|
|||||||
@@ -44,6 +44,7 @@ class Settings(BaseSettings):
|
|||||||
] = [
|
] = [
|
||||||
"http://dashboard.daheimao.top",
|
"http://dashboard.daheimao.top",
|
||||||
"https://dashboard.daheimao.top",
|
"https://dashboard.daheimao.top",
|
||||||
|
"http://120.76.41.122:5173"
|
||||||
]
|
]
|
||||||
|
|
||||||
@computed_field # type: ignore[prop-decorator]
|
@computed_field # type: ignore[prop-decorator]
|
||||||
|
|||||||
Reference in New Issue
Block a user