mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-12 02:21:29 +08:00
23 lines
429 B
Python
23 lines
429 B
Python
from fastapi import FastAPI
|
|
|
|
from httprunner import __version__
|
|
from .routers import deps, debugtalk, testcase
|
|
|
|
app = FastAPI()
|
|
|
|
|
|
@app.get("/hrun/version")
|
|
async def get_hrun_version():
|
|
return {
|
|
"code": 0,
|
|
"message": "success",
|
|
"result": {
|
|
"HttpRunner": __version__
|
|
}
|
|
}
|
|
|
|
|
|
app.include_router(deps.router)
|
|
app.include_router(debugtalk.router)
|
|
app.include_router(testcase.router)
|