Skip to content

Latest commit

 

History

History
15 lines (12 loc) · 1.32 KB

ROUTING_ATTRIBUTES.MD

File metadata and controls

15 lines (12 loc) · 1.32 KB

Routing Attributes

Routing attributes are used by the RouteBuilder to build routes. There's a number of different attribute variations you can use between classes and methods.

The following table lists the routing attributes and where they can be used, more detailed descriptions and examples are below.

Attribute Type Description
RouteController Class Instruct a class to be a controller
Accepts Class/Method Specify the accepted content type
Path Class/Method Specify the URL path
PostFlight Class/Method Bind a pre flight operation
PreFlight Class/Method Bind a post flight operation
Method Method Specify the HTTP method for that route