-
Notifications
You must be signed in to change notification settings - Fork 0
Bump version to 3.0.1 and clean up README formatting #98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| """Python - FastAPI, Postgres, tsvector""" | ||
| """Python° - FastAPI, Postgres, tsvector""" | ||
|
|
||
| # Current Version | ||
| __version__ = "1" | ||
| __version__ = "3.0.1" |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -8,44 +8,15 @@ | |||||
|
|
||||||
| @router.get("/") | ||||||
| def root() -> dict: | ||||||
| """NX-AI.""" | ||||||
| """"Python°""" | ||||||
| load_dotenv() | ||||||
| base_url = os.getenv("BASE_URL", "http://localhost:8000") | ||||||
| epoch = int(time.time() * 1000) | ||||||
| meta = { | ||||||
| "title": "Python", | ||||||
| "severity": "success", | ||||||
| "title": "Python°", | ||||||
| "version": __version__, | ||||||
| "base_url": base_url, | ||||||
| "time": epoch, | ||||||
| } | ||||||
| endpoints = [ | ||||||
| {"name": "health", "url": f"{base_url}/health"}, | ||||||
| { | ||||||
| "name": "Queue", | ||||||
| "endpoints": [ | ||||||
| {"name": "list", "url": f"{base_url}/queue"}, | ||||||
| ] | ||||||
| }, | ||||||
| { | ||||||
| "name": "Prompt°", | ||||||
| "endpoints": [ | ||||||
| {"name": "list", "url": f"{base_url}/prompt"}, | ||||||
| ] | ||||||
| }, | ||||||
| { | ||||||
| "name": "Orders°", | ||||||
| "endpoints": [ | ||||||
| {"name": "list", "url": f"{base_url}/orders"}, | ||||||
| ] | ||||||
| }, | ||||||
| { | ||||||
| "name": "Prospects°", | ||||||
| "endpoints": [ | ||||||
| {"name": "list", "url": f"{base_url}/prospects"}, | ||||||
| ] | ||||||
| }, | ||||||
|
|
||||||
| {"name": "Docs", "url": f"{base_url}/docs"}, | ||||||
| ] | ||||||
| return {"meta": meta, "data": endpoints} | ||||||
|
|
||||||
| return {"meta": meta} | ||||||
|
||||||
| return {"meta": meta} | |
| return {"meta": meta, "data": {}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The root endpoint’s meta payload is diverging further from the project’s standard meta format: most routes use app.utils.make_meta(), which includes keys like severity and base (not base_url). Dropping "severity" and using "base_url" here makes meta inconsistent across endpoints and complicates client handling; consider using make_meta("success", ...) (and/or aligning key names) for consistency.