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 marking notifications as read #16175

Merged
merged 4 commits into from
May 27, 2024

Conversation

MikeAlhayek
Copy link
Member

Move the route to mark notifications as read to use MinimalAPI.

Also, prevent sending a request to request to the server is one is already being sent. This will prevent sending multiple unnecessary request to the server.

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.

It's almost formatted and few suggestions to align with the current code base


public static class MarkAsReadEndpoints
{
public const string RouteName = "NotificationsMarkAsRead";
Copy link
Member

Choose a reason for hiding this comment

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

I like the route how it was in other code base, because it will be used once

Copy link
Member Author

Choose a reason for hiding this comment

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

Not sure what you are asking here. This is a route name. This is used to identify the route path later

Co-authored-by: Hisham Bin Ateya <hishamco_2007@yahoo.com>
@hishamco
Copy link
Member

Please react to the remaining comments, then request for a review

@MikeAlhayek MikeAlhayek requested a review from hishamco May 27, 2024 19:29
@MikeAlhayek
Copy link
Member Author

@hishamco everything that is worth taking was taken. Anything else?

@MikeAlhayek MikeAlhayek merged commit 873b493 into main May 27, 2024
17 checks passed
@MikeAlhayek MikeAlhayek deleted the ma/notification-minimalapi branch May 27, 2024 21:18
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.

None yet

2 participants