diff options
author | Ognjen Cirkovic <ciraboxkg@gmail.com> | 2022-03-21 17:30:57 +0100 |
---|---|---|
committer | Ognjen Cirkovic <ciraboxkg@gmail.com> | 2022-03-21 17:30:57 +0100 |
commit | 72564a9d2d6b9c7f4be8e786fadd40ce9248c7c1 (patch) | |
tree | dd6a48606aa03132ba66452869f6c28fb0d3d23d /backend/api/api/Controllers/AuthController.cs | |
parent | 3f4b29011e2f525bd8c2bd81a1dd5f8f741d1de3 (diff) |
Omoguceno preuzimaje guest Tokena.
Diffstat (limited to 'backend/api/api/Controllers/AuthController.cs')
-rw-r--r-- | backend/api/api/Controllers/AuthController.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/backend/api/api/Controllers/AuthController.cs b/backend/api/api/Controllers/AuthController.cs index 7167d1bf..901454e1 100644 --- a/backend/api/api/Controllers/AuthController.cs +++ b/backend/api/api/Controllers/AuthController.cs @@ -30,6 +30,12 @@ namespace api.Controllers return Ok(_auth.Login(user)); } + [HttpPost("guestToken")] + public async Task<ActionResult<string>> guestToken() + { + + return Ok(_auth.GuestToken()); + } [HttpGet("Auth")] [Authorize(Roles ="User")] |