diff options
author | Sonja Galovic <galovicsonja@gmail.com> | 2022-03-22 19:55:12 +0100 |
---|---|---|
committer | Sonja Galovic <galovicsonja@gmail.com> | 2022-03-22 19:55:12 +0100 |
commit | 2d02d336687d7780cd3c122f10933a772a0a3d1a (patch) | |
tree | 5aadb9a50c6f45b42ebf302a3802f1464f7f2f2e /backend/api/api/Controllers/AuthController.cs | |
parent | c734e57e88280d7b05f46f7630b691b5b45c926b (diff) | |
parent | 8427c04dcb422e0c93a4340adee8274c2d353a23 (diff) |
Merge branch 'dev' of http://gitlab.pmf.kg.ac.rs/igrannonica/neuronstellar into dev
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")] |