CodeGenieApp / CodeGenieApp/serverless-express

[404 Not Found] API Gateway HTTP Protocol Path Matching with stage

未關閉
#653 3 則留言 1 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
JavaScript
星號
5.3k
分支
676
PR 合併指標
30 天內沒有已合併 PR

描述

We have an HTTP protocol API that has 2 deployment stages: test and prod.
My understanding is the way the package match for a path is through the API Gateway Event `rawPath` property.
When the API has stages the rawPath will look like this `/{stage}/my-path` and will not match with any path.

貢獻指南

開啟貢獻指南

研究方向

先重現 test 和 prod 階段的 HTTP API Gateway 事件,並檢查 rawPath 如何用於套件比對。追蹤現有的路徑比對進入點,並新增涵蓋範圍以顯示包含階段的路徑能正確到達 /my-path;完成條件是兩個階段對相符的路由都不再回傳 404。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
aws, express, javascript
領域
api, backend, cloud
Issue 類型
缺陷
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
需要釐清
新手友好度
30/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。