lack-mw/README.md

24 lines
643 B
Markdown
Raw Normal View History

2024-12-21 09:02:54 +00:00
# lack-mw
2024-12-22 06:30:31 +00:00
Middleware collection for [Lack](https://github.com/fukamachi/lack).
2024-12-22 06:53:41 +00:00
These middlewares were ported from [Hono](https://github.com/honojs/hono).
2024-12-22 06:30:31 +00:00
## 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.
- Coming soon...
## License
Licensed under the MIT License.
2024-12-22 06:53:41 +00:00
© 2024 skyizwhite
© 2021 - present, Yusuke Wada and Hono contributors