mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-10-03 02:21:44 +00:00
Some checks are pending
CodeQL / Analyze (javascript-typescript) (push) Waiting to run
CodeQL / Analyze (python) (push) Waiting to run
Gitleaks / gitleaks (push) Waiting to run
Publish / Classify release event (push) Waiting to run
Publish / RC guard (marker + release-PR skip) (push) Blocked by required conditions
Publish / ci (push) Blocked by required conditions
Publish / Publish to npm (push) Blocked by required conditions
Publish / Build & Push RC Docker images (push) Blocked by required conditions
Scorecard / Scorecard analysis (push) Waiting to run
Trivy Image Scan / Trivy (gitnexus-cli) (push) Waiting to run
Trivy Image Scan / Trivy (gitnexus-web) (push) Waiting to run
15 lines
653 B
Python
15 lines
653 B
Python
from fastapi import FastAPI
|
|
from api import items
|
|
from api import users
|
|
from api.calls import router as calls_router
|
|
from .relative import router as rel_router
|
|
|
|
# Hostname is `application`, NOT `app` — exercises the unrestricted-host
|
|
# path through both the parse-worker regex and the group-layer
|
|
# tree-sitter pattern. Pinning to literal `app` would silently drop
|
|
# every prefix here.
|
|
application = FastAPI()
|
|
application.include_router(items.router, prefix="/v1")
|
|
application.include_router(users.router, prefix="/users", tags=["users"])
|
|
application.include_router(calls_router, prefix="/calls")
|
|
application.include_router(rel_router, prefix="/rel")
|