Skip to content

Commit 813e833

Browse files
dave-shawleyclaude
andcommitted
Match bare /docs path in Caddyfile route
The /docs/* matcher only catches /docs/<sub>, so a request to the bare /docs path fell through to the static UI handler and returned index.html instead of FastAPI's Swagger UI. Add /docs as an explicit matcher alongside /docs/* so both the entry point and the assets it loads reach imbi-api. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent eab8dbb commit 813e833

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Caddyfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
reverse_proxy 127.0.0.1:8002
1313
}
1414

15-
handle /docs/* {
15+
handle /docs /docs/* {
1616
reverse_proxy 127.0.0.1:8000
1717
}
1818

0 commit comments

Comments
 (0)