diff --git a/src/routes/docs/[...20]misc-conveniences.md b/src/routes/docs/[...20]misc-conveniences.md index d242b799..210f3235 100644 --- a/src/routes/docs/[...20]misc-conveniences.md +++ b/src/routes/docs/[...20]misc-conveniences.md @@ -1,4 +1,4 @@ ---- +image--- title: Misc Conveniences description: A light-weight REST Api framework for ASP.Net 6 that implements REPR (Request-Endpoint-Response) Pattern. --- @@ -17,7 +17,7 @@ Options(b => b.RequireCors(x => x.AllowAnyOrigin()) ## Multiple Verbs & Routes -A single endpoint can be made to listen to more than one type of http verb and on multiple routes like below. This is sometimes useful when your endpoint handler code is almost the same with a minor variation across different routes/verbs. Instead of creating multiple endpoint classes, you can use this strategy to handle multiple use-cases with a single piece of handler logic. +A single endpoint can be made to listen to more than one type of http verb and on multiple routes like below. This is sometimes useful when your endpoint handler code is almost the same with a minor variation across different routes/verbs. Instead of creating multiple endpoint classes, you can use this strategy to handle multiple use-cases with a single piece of handler logic via `HttpContext.Request.Path` and `HttpContext.Request.HttpMethod`. ```cs | title=MyEndpoint.cs public override void Configure() @@ -236,4 +236,4 @@ The following 5 hook methods allow you to do something before and after DTO vali override this method if you'd like to do something to the request dto before the handler is executed. - **OnAfterHandle()** - override this method if you'd like to do something after the handler is executed. \ No newline at end of file + override this method if you'd like to do something after the handler is executed.