This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Rewrite URL API version segment if it exists | |
/// </summary> | |
public class UrlSegmentApiVersionStripMiddleware { | |
private static readonly string DEFAULT_API_VERSION_PREFIX = "v"; | |
private readonly string _apiVersionVersion; | |
private readonly RequestDelegate _next; | |