Is there a more convenient way to make the action available only to X environment ?
For the time being, I can do something simple as this :
[HttpGet]
public IActionResult MenualTransactionHandling()
{
if(env.IsDevelopment())
{
// Code
return Ok();
}
else
{
// Any other enviroment will not enter
return Forbid();
}
}
I would like something like this :
[Development]
public IActionResult MenualTransactionHandling() { /*Code*/ return Ok(); }