Skip to content

Commit 36e9d7d

Browse files
Add tags to root endpoint for OpenAPI spec
The root '/' endpoint was missing tags, causing it to appear under a default 'API Reference' category in generated docs instead of 'Server Details' where it belongs. Co-authored-by: openhands <openhands@all-hands.dev>
1 parent f34bc8c commit 36e9d7d

File tree

1 file changed

+1
-1
lines changed
  • openhands-agent-server/openhands/agent_server

1 file changed

+1
-1
lines changed

openhands-agent-server/openhands/agent_server/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ def _setup_static_files(app: FastAPI, config: Config) -> None:
229229
and config.static_files_path.is_dir()
230230
):
231231
# Map the root path to server info if there are no static files
232-
app.get("/")(get_server_info)
232+
app.get("/", tags=["Server Details"])(get_server_info)
233233
return
234234

235235
# Mount static files directory

0 commit comments

Comments
 (0)