Skip to content

Commit 8ec9ce4

Browse files
committed
- clarification
1 parent 048a98a commit 8ec9ce4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
### WebResultEndpoint
3030

31-
- **Purpose**: Converts business results into standardized HTTP responses, ensuring consistent and type-safe API behavior.
31+
- **Purpose**: Converts business results into standardized HTTP status codes and response formats, ensuring consistent and type-safe API behavior.
3232
- **Usage**: Perfect for centralizing and abstracting the logic of converting business results into HTTP responses.
3333

3434
### BusinessResultEndpoint
@@ -49,7 +49,7 @@
4949

5050
Each endpoint must implement two virtual methods:
5151

52-
1. **Configure**: Called at application startup to define routes and associate them with handler methods (`MapGet`, `MapPost`, etc.). The returned `RouteHandlerBuilder` can be used to further customize endpoints.
52+
1. **Configure**: Invoked during application startup to define the route and HTTP method for an endpoint. It begins with methods like `MapGet`, `MapPost`, etc., to specify the route pattern. The returned `RouteHandlerBuilder` from the Map[HttpVerb] method can then be used for further endpoint customization.
5353

5454
2. **HandleAsync**: Contains the logic to handle incoming requests. Called after the request is validated (if applicable).
5555

0 commit comments

Comments
 (0)