Skip to content

Commit 18f2c80

Browse files
committed
Bump version and simplify root response
Bump __version__ to 3.0.1 and update module/root docstrings to use the "Python°" label. Simplify the API root response by changing the meta title to "Python°", removing the "severity" field and the detailed endpoints list—root now returns only the meta payload. This streamlines the root health/info endpoint and increments the package version accordingly.
1 parent caaed25 commit 18f2c80

2 files changed

Lines changed: 6 additions & 35 deletions

File tree

app/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Python - FastAPI, Postgres, tsvector"""
1+
"""Python° - FastAPI, Postgres, tsvector"""
22

33
# Current Version
4-
__version__ = "3.0.0"
4+
__version__ = "3.0.1"

app/api/root.py

Lines changed: 4 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -8,44 +8,15 @@
88

99
@router.get("/")
1010
def root() -> dict:
11-
"""NX-AI."""
11+
""""Python°"""
1212
load_dotenv()
1313
base_url = os.getenv("BASE_URL", "http://localhost:8000")
1414
epoch = int(time.time() * 1000)
1515
meta = {
16-
"title": "Python",
17-
"severity": "success",
16+
"title": "Python°",
1817
"version": __version__,
1918
"base_url": base_url,
2019
"time": epoch,
2120
}
22-
endpoints = [
23-
{"name": "health", "url": f"{base_url}/health"},
24-
{
25-
"name": "Queue",
26-
"endpoints": [
27-
{"name": "list", "url": f"{base_url}/queue"},
28-
]
29-
},
30-
{
31-
"name": "Prompt°",
32-
"endpoints": [
33-
{"name": "list", "url": f"{base_url}/prompt"},
34-
]
35-
},
36-
{
37-
"name": "Orders°",
38-
"endpoints": [
39-
{"name": "list", "url": f"{base_url}/orders"},
40-
]
41-
},
42-
{
43-
"name": "Prospects°",
44-
"endpoints": [
45-
{"name": "list", "url": f"{base_url}/prospects"},
46-
]
47-
},
48-
49-
{"name": "Docs", "url": f"{base_url}/docs"},
50-
]
51-
return {"meta": meta, "data": endpoints}
21+
22+
return {"meta": meta}

0 commit comments

Comments
 (0)