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