diff options
author | Ognjen Cirkovic <ciraboxkg@gmail.com> | 2022-03-22 15:14:16 +0000 |
---|---|---|
committer | Ognjen Cirkovic <ciraboxkg@gmail.com> | 2022-03-22 15:14:16 +0000 |
commit | 8427c04dcb422e0c93a4340adee8274c2d353a23 (patch) | |
tree | b5e59b9f7b4962d7babe19d3cdf16ed79000cc51 /backend/api/api/Controllers/AuthController.cs | |
parent | 31642f68564e67175301235546b74baf56ac5882 (diff) | |
parent | dae1245ec41724a15386bfb065d6600ee728191c (diff) |
Merge branch 'Privremeno-cuvanje-podataka' into 'dev'
Privremeno cuvanje podataka
See merge request igrannonica/neuronstellar!25
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")] |