docs(server): tighten the method-guard comments and changelog

This commit is contained in:
German Khokhlov committed 2026-11-09 19:07:14 +04:00
1 parent ace88172d3
commit c3738c0fdb
7 files changed
+13 -30

No files matched your search

+4 -7
View File
@@ -1,7 +1,4 @@
- The read-only query proxies state their method contract. `/api/flights`,
`/api/military` and `/api/route` answered any verb with the same body
while ignoring the request; they now answer `405 Method Not Allowed` to
anything but `GET`, the way `/api/geocode` and the other query proxies
already did, and declare `Allow: GET` with it the way `/api/radio/stations`
does. The refusal precedes rate limiting and any upstream call
(daikaginza, #794).
- Answer `405 Method Not Allowed` with `Allow: GET` to anything but `GET` on
`/api/flights`, `/api/military` and `/api/route`, as the other query proxies
do. They answered every verb with the same body. The refusal comes before
rate limiting and any upstream call (daikaginza, #794).