lack-mw/README.md
2024-12-22 15:34:49 +09:00

20 lines
No EOL
513 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).
## 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