chore: (WIP) group controllers, slightly annotate code

This commit is contained in:
2025-07-15 13:24:39 +02:00
parent dee143dbc8
commit a355c668bd
8 changed files with 175 additions and 174 deletions

View File

@@ -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()