new URLでAPIのパスが消える理由:末尾と先頭のスラッシュをNode.jsで比較実測
new URL('users', 'https://example.com/api/v1') の結果は、https://example.com/api/users です。v1 は残りません。 AIが書いたAPI呼び出しでは、new URL() を文字列の連結だと思うと、この...
0 upvotes
View original discussion ↗
new URL('users', 'https://example.com/api/v1') の結果は、https://example.com/api/users です。v1 は残りません。 AIが書いたAPI呼び出しでは、new URL() を文字列の連結だと思うと、この...
Comments
Sign in or sign up to comment and upvote.
No comments yet.