mirror of
https://github.com/QuotifyTeam/QuotifyBE.git
synced 2025-12-17 01:00:07 +01:00
chore: (WIP) group controllers, slightly annotate code
This commit is contained in:
@@ -22,6 +22,7 @@ public class AuthController : ControllerBase
|
||||
_appsettings = appsettings;
|
||||
}
|
||||
|
||||
// POST /api/v1/auth/login
|
||||
[HttpPost("login")]
|
||||
public async Task<IActionResult> Login([FromBody] UserLoginDTO formUser, GeneralUseHelpers guhf)
|
||||
{
|
||||
@@ -48,6 +49,7 @@ public class AuthController : ControllerBase
|
||||
} else return Unauthorized(new {status = "error", error_msg = "Unknown pair of email and password"});
|
||||
}
|
||||
|
||||
// GET /api/v1/auth/some_values
|
||||
[HttpGet("some_values")]
|
||||
[Authorize]
|
||||
public IActionResult GetValues()
|
||||
|
||||
Reference in New Issue
Block a user