Commit e22fd283 authored by Fabian Waszkiewicz's avatar Fabian Waszkiewicz Committed by Jakub Lachór
Browse files

refactor: unify middleware with createMiddleware factory

- Add createMiddleware() factory function to @middleware/lib/common
- Support configurable root redirect (e.g., '/trending' for blog)
- Update blog middleware to use createMiddleware({ rootRedirect: '/trending' })
- Wallet middleware can use default createMiddleware()
parent 37a40315
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment