Skip to main content

Configuration

Voyager generates code that uses Minimal APIs. That means that you can add any configuration that minimal APIs support if needed. All you have to do is add a static Configure function to your endpoint.

[VoyagerEndpoint("weatherForecast/{city}")]
public class WeatherForecastEndpoint
{
public static void Configure(RouteHandlerBuilder builder)
{
builder.CacheOutput();
}
}