Skip to content

Fix/es6 routes - Refactor: Convert routes to ES6 Module Syntax#64

Merged
agaesh merged 4 commits intofix/es6-migrationfrom
fix/es6-routes
Oct 11, 2025
Merged

Fix/es6 routes - Refactor: Convert routes to ES6 Module Syntax#64
agaesh merged 4 commits intofix/es6-migrationfrom
fix/es6-routes

Conversation

@agaesh
Copy link
Owner

@agaesh agaesh commented Oct 11, 2025

🧱 Refactor: Convert userRoute to ES6 Module Syntax

Description

This pull request updates the userRoute file to use ES6 module syntax for modern structure and consistency with other routes.

Key Changes

  • Converted all require statements to import.
  • Added .js extensions to local imports.
  • Replaced module.exports with export default router.
  • Cleaned up redundant lines and standardized comments.

Notes

⚠️ The router has been refactored but not yet tested.
Further validation is required to ensure all endpoints work as expected under the ES6 setup.

  • Test each route endpoint (/register, /login, /logout, /testProtectRoutes).
  • Verify cookie handling and middleware compatibility.

@agaesh agaesh linked an issue Oct 11, 2025 that may be closed by this pull request
8 tasks
@agaesh agaesh changed the base branch from main to fix/es6-migration October 11, 2025 14:52
@agaesh agaesh merged commit f575997 into fix/es6-migration Oct 11, 2025
1 check failed
@agaesh
Copy link
Owner Author

agaesh commented Oct 11, 2025

Succesfully merged es6 routes inside fix/es6-migration. Integration test will be happened in the fix/es6-migration branch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🚦Issue: Convert Routes to ES6 Module Syntax

1 participant