Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use MinimalAPI for two-factor authentication code request #16174

Merged
merged 6 commits into from
May 27, 2024

Conversation

MikeAlhayek
Copy link
Member

Switch the 2FA code requests to use MinimalAPI

Copy link
Member

@hishamco hishamco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems you started using Minimal APIs, we could decide if can use them across the modules

MikeAlhayek and others added 2 commits May 27, 2024 11:50
@MikeAlhayek MikeAlhayek requested a review from hishamco May 27, 2024 19:29
@MikeAlhayek
Copy link
Member Author

Seems you started using Minimal APIs, we could decide if can use them across the modules

@hishamco, MinimalAPIs are great when possible. One on their advantage over using controllers is that the reduce the overhead and they are executed early on in the request which add a slightly better performance and less resources.

Any route that is acting like a REST request can/should be processed using a MinimalAPI. The two route in this PR are perfect candidates for using MinimalAPI.

@MikeAlhayek MikeAlhayek requested a review from hishamco May 27, 2024 20:50
@MikeAlhayek MikeAlhayek merged commit 4d10d15 into main May 27, 2024
21 checks passed
@MikeAlhayek MikeAlhayek deleted the ma/2fa-endpoints branch May 27, 2024 20:58
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.

2 participants