nft.storage icon indicating copy to clipboard operation
nft.storage copied to clipboard

wip: router changes to allow method-not-allowed

Open olizilla opened this issue 3 years ago • 1 comments

add tests for

  • GET /login to return 405 Method Not Allowed
  • POST /login to return 401 Unauthorized if auth header not present

initial work on getting router to find path-but-not-method matches

hampered by the GET /:cid route matching GET /login

see #2066

License: (Apache-2.0 AND MIT) Signed-off-by: Oli Evans [email protected]

olizilla avatar Jul 13 '22 09:07 olizilla

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: e04cc59
Status: ✅  Deploy successful!
Preview URL: https://18158d07.nft-storage-1at.pages.dev
Branch Preview URL: https://method-not-allowed.nft-storage-1at.pages.dev

View logs