Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <location path="Webhook">
- <system.web>
- <authorization>
- <allow users="*"/>
- </authorization>
- </system.web>
- </location>
- <authorization>
- <deny users="?" />
- </authorization>
- [Authorize]
- public class BaseController : System.Web.Mvc.Controller
- {
- }
- [Authorize]
- public class BaseApiController : System.Web.Http.ApiController
- {
- }
- [RoutePrefix("Api/Anonymous")]
- [Authorize]
- public class AnonymousController : ApiController
- {
- [HttpGet]
- [Route("GetServiceStatus")]
- [AllowAnonymous]
- public string GetServiceStatus()
- {
- return "OK";
- }
- }
Add Comment
Please, Sign In to add comment