lack-mw/README.md
2024-12-22 15:53:41 +09:00

24 lines
No EOL
643 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 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.
- Coming soon...
## License
Licensed under the MIT License.
© 2024 skyizwhite
© 2021 - present, Yusuke Wada and Hono contributors