You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
389 B
20 lines
389 B
from fastapi import FastAPI |
|
from fastapi.middleware.cors import CORSMiddleware |
|
|
|
from app.api import tests |
|
|
|
app = FastAPI(title="QA Test App API", version="0.1.0") |
|
|
|
app.add_middleware( |
|
CORSMiddleware, |
|
allow_origins=["*"], |
|
allow_methods=["*"], |
|
allow_headers=["*"], |
|
) |
|
|
|
app.include_router(tests.router) |
|
|
|
|
|
@app.get("/api/health") |
|
async def health(): |
|
return {"status": "ok"}
|
|
|