diff options
author | Danijel Andjelkovic <adanijel99@gmail.com> | 2022-03-10 01:00:55 +0100 |
---|---|---|
committer | Danijel Andjelkovic <adanijel99@gmail.com> | 2022-03-10 01:00:55 +0100 |
commit | 400f0d32b919da62efd9e26d0fa7f506904f0073 (patch) | |
tree | c7d7b30ed99c091b0fc5b47d6b50b8017b40aec1 /backend/api/api/Controllers/AuthController.cs | |
parent | ff97a3c62ab764e35df4928cf87709088e2b4c8b (diff) | |
parent | a6f994c8bcd6949c186fe4209ad5a5f5f9f58eb5 (diff) |
Merge branch 'frontendCSV' of http://gitlab.pmf.kg.ac.rs/igrannonica/neuronstellar into dev
# Conflicts:
# backend/api/api/Controllers/UserController.cs
# backend/api/api/Interfaces/IUserStoreDatabaseSettings.cs
# backend/api/api/Services/IUserService.cs
# backend/api/api/Services/UserService.cs
# backend/api/api/appsettings.json
Diffstat (limited to 'backend/api/api/Controllers/AuthController.cs')
-rw-r--r-- | backend/api/api/Controllers/AuthController.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/backend/api/api/Controllers/AuthController.cs b/backend/api/api/Controllers/AuthController.cs index 01354f87..e1601815 100644 --- a/backend/api/api/Controllers/AuthController.cs +++ b/backend/api/api/Controllers/AuthController.cs @@ -30,6 +30,13 @@ namespace api.Controllers return Ok(_auth.Login(user)); } + [HttpGet("Auth")] + [Authorize(Roles ="User")] + public async Task<ActionResult<string>> TestAuth() + { + return Ok("works"); + } + } |