mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-12 14:22:21 +00:00
docs(server): tighten the method-guard comments and changelog
This commit is contained in:
1 parent
ace88172d3
commit
c3738c0fdb
7 files changed
+13
-30
No files matched your search
@@ -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).
|
||||
Reference in new issue
Block a user