Add pattern syntax for optional trailing slash
オープン
A-router
A-web
C-feature
- 主要言語
- Rust
- スター
- 24.8k
- フォーク
- 1.9k
- 平均マージ
- 23時間 10分
- マージ済み PR(30日)
- 26
説明
I proposed this idea in to handle cases where trailing slashes are relevant. Basically, allow defining a route with a pattern like "/some/path/?" that matches both "/some/path" and "/some/path/". I also proposed to add a method to check whether the URI has a trailing slash, but that can also be done with `request.uri().path().ends_with('/')`, so idk whether we actually need this.
コントリビューションガイド
評価
この issue はまだ評価されていません。