Created
April 14, 2018 20:10
-
-
Save aramkoukia/ba398b52bd1ca6af17f7d1dfb8d7a81c to your computer and use it in GitHub Desktop.
Opt Out of Versioning
This file contains hidden or 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
[ApiVersionNeutral] | |
[Route("api/optout")] | |
public class OptOutControler : Controller | |
{ | |
[HttpGet] | |
public string Get() => HttpContext.GetRequestedApiVersion().ToString(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment