Add docs directory
This commit is contained in:
parent
f0306d87b9
commit
579c08ab14
3 changed files with 56 additions and 10 deletions
11
README.md
11
README.md
|
@ -1,24 +1,17 @@
|
|||
# lack-mw
|
||||
|
||||
Middleware collection for [Lack](https://github.com/fukamachi/lack).
|
||||
|
||||
These middlewares were ported from [Hono](https://github.com/honojs/hono).
|
||||
|
||||
## Middlewares
|
||||
|
||||
- **trailing-slash**
|
||||
Handles trailing slashes in URLs for GET requests.
|
||||
If the requested resource isn’t found, it redirects to the correct URL accordingly.
|
||||
- `*append-trailing-slash*`
|
||||
Redirects to the URL **with** a trailing slash.
|
||||
- `*trim-trailing-slash*`
|
||||
Redirects to the URL **without** a trailing slash.
|
||||
- [trailing-slash](/docs/trailing-slash.md)
|
||||
- Coming soon...
|
||||
|
||||
## License
|
||||
|
||||
Licensed under the MIT License.
|
||||
|
||||
© 2024 skyizwhite
|
||||
© 2024 - present, skyizwhite
|
||||
|
||||
© 2021 - present, Yusuke Wada and Hono contributors
|
Loading…
Add table
Add a link
Reference in a new issue