Skip to content

Update user.js#1

Open
Avijit-roy wants to merge 1 commit intokanhaiya-2000:mainfrom
Avijit-roy:patch-1
Open

Update user.js#1
Avijit-roy wants to merge 1 commit intokanhaiya-2000:mainfrom
Avijit-roy:patch-1

Conversation

@Avijit-roy
Copy link

Rearrange user routes to improve readability and clarity.

improved the organization and usability of the routes:

Routes were categorized according to the level of authentication (public vs. protected). For cleaner syntax, the .route() chaining was replaced with direct method calls; imports were reformatted to span multiple lines for easier reading. Route groups were visually separated with comments.

In addition to making it much clearer which endpoints require authentication and which do not, this also makes it simpler to scan the file when searching for a particular route.

Rearrange user routes to improve readability and clarity.

improved the organization and usability of the routes:

Routes were categorized according to the level of authentication (public vs. protected).
For cleaner syntax, the `.route()` chaining was replaced with direct method calls; imports were reformatted to span multiple lines for easier reading.
Route groups were visually separated with comments.

In addition to making it much clearer which endpoints require authentication and which do not, this also makes it simpler to scan the file when searching for a particular route.
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.

1 participant