Fixed deploy, Added HH Auth on back-end #22

Merged
Lisoveliy merged 21 commits from dev into main 2025-07-16 20:21:02 +02:00
Showing only changes of commit 54393e2e0f - Show all commits

View File

@ -10,9 +10,9 @@ public class HeadHunterHookController(HeadHunterService hhService)
{
[HttpGet]
public async Task<IActionResult> Get(int userId, string? error, string authorizationCode)
public async Task<IActionResult> Get(int userId, string? error, string code)
{
var res = await hhService.AuthUser(userId, authorizationCode, error);
var res = await hhService.AuthUser(userId, code, error);
return res switch
{
HeadHunterService.Status.Success => Ok("Авторизация завершена успешно. Вернитесь в Telegram для продолжения."),