Class HttpGetAttribute
use this attribute to specify a GET route for an endpoint
Inherited Members
Namespace: FastEndpoints
Assembly: FastEndpoints.Attributes.dll
Syntax
[AttributeUsage(AttributeTargets.Class, Inherited = false)]
public sealed class HttpGetAttribute : HttpAttribute
Constructors
HttpGetAttribute(params string[])
use this attribute to specify a GET route for an endpoint
Declaration
public HttpGetAttribute(params string[] routes)
Parameters
Type | Name | Description |
---|---|---|
string[] | routes | the routes for the endpoint |