summaryrefslogtreecommitdiff
path: root/Controllers/MessageController.cs
diff options
context:
space:
mode:
authorHombreLaser <sebastian-440@live.com>2022-11-16 19:57:13 -0600
committerHombreLaser <sebastian-440@live.com>2022-11-16 19:57:13 -0600
commit7885b71dad3a2dea21b64532f6a825ce033bf0a6 (patch)
tree352a1500a0d4642b3b12c8e8a4fff9e842b059b9 /Controllers/MessageController.cs
parent00acb66e39f7b178d58f3f0ec298aec73d7aced9 (diff)
AƱadidos toques finales
Diffstat (limited to 'Controllers/MessageController.cs')
-rw-r--r--Controllers/MessageController.cs10
1 files changed, 8 insertions, 2 deletions
diff --git a/Controllers/MessageController.cs b/Controllers/MessageController.cs
index bacaf5c..2f4a8d8 100644
--- a/Controllers/MessageController.cs
+++ b/Controllers/MessageController.cs
@@ -9,9 +9,15 @@ namespace IdentityAPI.Controllers {
public class MessageController : ControllerBase {
public MessageController() {}
- [HttpGet]
- public async Task<IActionResult> Show() {
+ [HttpGet("message_authenticated")]
+ public IActionResult AuthenticationMessage() {
return Ok(new { message = "Authentication succesful" });
}
+
+ [HttpGet("message_anonymous")]
+ [AllowAnonymous]
+ public IActionResult AnonymousMessage() {
+ return Ok(new { message = "Anonymous detected." });
+ }
}
} \ No newline at end of file