feat: add swagger documentation link to main page
Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
This commit is contained in:
@@ -86,6 +86,7 @@ fn build_item_list(conn: &Connection, params: &ListQueryParams) -> Result<String
|
|||||||
let mut html = String::new();
|
let mut html = String::new();
|
||||||
html.push_str("<html><head><title>Items</title></head><body>");
|
html.push_str("<html><head><title>Items</title></head><body>");
|
||||||
html.push_str("<h1>Items</h1>");
|
html.push_str("<h1>Items</h1>");
|
||||||
|
html.push_str("<p><a href=\"/swagger\">API Documentation</a></p>");
|
||||||
html.push_str("<ul>");
|
html.push_str("<ul>");
|
||||||
|
|
||||||
for item in page_items {
|
for item in page_items {
|
||||||
|
|||||||
Reference in New Issue
Block a user