# RouteAttribute constructor

Kind: Constructor  
Namespace: `Sisk.Core.Routing`  
Assembly: `Sisk.Core.dll`  
Source: https://docs.sisk-framework.org/api/Sisk.Core.Routing.RouteAttribute.-ctor.html

## RouteAttribute(RouteMethod, string) {#Sisk_Core_Routing_RouteAttribute__ctor_Sisk_Core_Routing_RouteMethod_System_String_}

Creates an new [RouteAttribute](https://docs.sisk-framework.org/api/Sisk.Core.Routing.RouteAttribute.md) instance with given route method and path pattern.

```csharp
public RouteAttribute(RouteMethod method, string path)
```

### Parameters

`method` [RouteMethod](https://docs.sisk-framework.org/api/Sisk.Core.Routing.RouteMethod.md)

The route entry point method.

`path` [string](https://learn.microsoft.com/dotnet/api/system.string)

The route path.
