Created
May 17, 2018 16:41
-
-
Save wellingtonjhn/dced5b34732220ec240e5480aecbbddd to your computer and use it in GitHub Desktop.
Allow Anonymous Actions
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
| [HttpPost, AllowAnonymous, Route("register")] | |
| public async Task<IActionResult> CreateUser([FromBody] CreateUser command) | |
| { | |
| // ... conteúdo ocultado | |
| } | |
| [HttpPost, AllowAnonymous, Route("login")] | |
| public async Task<IActionResult> Authenticate([FromBody] AuthenticateUser command) | |
| { | |
| // ... conteúdo ocultado | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment