Skip to content

Releases: fhmiibrhimdev/rest-api-adonisjs

v1.2.1

Choose a tag to compare

@fhmiibrhimdev fhmiibrhimdev released this 19 Sep 08:20

✨ New Features:

  • Universal dashboard endpoint accessible by all authenticated users
  • Role-based feature display (admin, moderator, user)
  • Personalized welcome messages

🔧 Improvements:

  • Cleaner route structure
  • Simplified role-based grouping
  • Better code organization

🔐 Security:

  • Maintained authentication requirements
  • Role-aware feature access
  • Secure token validation

Full Changelog: v1.2.0...v1.2.1

v1.2.0

Choose a tag to compare

@fhmiibrhimdev fhmiibrhimdev released this 19 Sep 07:42

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

v1.1.0

Choose a tag to compare

@fhmiibrhimdev fhmiibrhimdev released this 19 Sep 07:39

feat: add flexible role-based middleware system

  • Add RolesMiddleware for flexible multi-role authorization
  • Add ModeratorMiddleware for moderator and admin access
  • Register new middleware in kernel.ts
  • Add example routes with different role access levels
  • Support for admin-only, moderator+admin, and custom role combinations
  • Enhance route protection with granular role-based access control

Full Changelog: v1.0.0...v1.1.0