[backend/masto-client] Add FromHybrid to BiteUser id
This commit is contained in:
parent
b170624b44
commit
4bcfa99a3f
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ public class BiteController(DatabaseContext db, BiteService biteSvc) : Controlle
|
||||||
[Authenticate("write:bites")]
|
[Authenticate("write:bites")]
|
||||||
[ProducesResults(HttpStatusCode.OK)]
|
[ProducesResults(HttpStatusCode.OK)]
|
||||||
[ProducesErrors(HttpStatusCode.BadRequest, HttpStatusCode.NotFound)]
|
[ProducesErrors(HttpStatusCode.BadRequest, HttpStatusCode.NotFound)]
|
||||||
public async Task BiteUser(string id)
|
public async Task BiteUser([FromHybrid] string id)
|
||||||
{
|
{
|
||||||
var user = HttpContext.GetUserOrFail();
|
var user = HttpContext.GetUserOrFail();
|
||||||
if (user.Id == id)
|
if (user.Id == id)
|
||||||
|
|
Loading…
Add table
Reference in a new issue