diff options
Diffstat (limited to 'Backend')
-rw-r--r-- | Backend/Api/Api/Controllers/UserController.cs | 2 | ||||
-rw-r--r-- | Backend/Api/Api/Services/ChatHub.cs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Backend/Api/Api/Controllers/UserController.cs b/Backend/Api/Api/Controllers/UserController.cs index 1bc395f..dd081cb 100644 --- a/Backend/Api/Api/Controllers/UserController.cs +++ b/Backend/Api/Api/Controllers/UserController.cs @@ -55,7 +55,7 @@ namespace Api.Controllers return Ok(rez); return BadRequest(); } - [HttpGet("{id}/profile")] + [HttpGet("{id}/id/profile")] [Authorize(Roles = "User")] public async Task<ActionResult<UserSend>> GetUserById(string id) { diff --git a/Backend/Api/Api/Services/ChatHub.cs b/Backend/Api/Api/Services/ChatHub.cs index e0bf5df..639a585 100644 --- a/Backend/Api/Api/Services/ChatHub.cs +++ b/Backend/Api/Api/Services/ChatHub.cs @@ -13,7 +13,7 @@ namespace Api.Services } public override async Task OnConnectedAsync() { - string token = Context.GetHttpContext().Request.Query["access_token"]; + string token = Context.GetHttpContext().Request.Headers["access_token"]; if (token == null) return; string id = _jwtService.TokenToId(token); |