added api docs

This commit is contained in:
Arseni
2026-02-24 21:26:31 +03:00
parent 0646f55189
commit fa54088b25
87 changed files with 2299 additions and 0 deletions

View File

@@ -37,6 +37,26 @@
header Cache-Control "no-cache, no-store, must-revalidate"
}
########################################
# API docs (ReDoc)
########################################
handle /docs {
redir * /docs/ 308
}
handle /docs/ {
root * {vars.static_root}/docs
rewrite * /doc.html
file_server
header Cache-Control "no-cache"
}
handle_path /docs/* {
root * {vars.static_root}/docs
file_server
header Cache-Control "no-cache"
}
########################################
# Static assets
########################################