Skip to content

v1.2.0

Choose a tag to compare

@fhmiibrhimdev fhmiibrhimdev released this 19 Sep 07:42
· 4 commits to main since this release

feat: add Laravel-style route helpers for cleaner middleware syntax

  • Add route_helpers.ts with Laravel-inspired helper functions
  • Create group helpers: authGroup, adminGroup, moderatorGroup, roleGroup
  • Create single route helpers: adminOnly, moderatorUp, staffOnly, authRole
  • Refactor routes.ts to use new helper functions for better readability
  • Implement clean syntax similar to Laravel's Route::middleware()->group()
  • Maintain AdonisJS functionality while improving developer experience

Full Changelog: v1.1.0...v1.2.0