Add docs directory

This commit is contained in:
Akira Tempaku 2024-12-23 15:58:14 +09:00
parent f0306d87b9
commit 579c08ab14
3 changed files with 56 additions and 10 deletions

View file

@ -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 isnt 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