Body fixes
This commit is contained in:
@@ -20,7 +20,7 @@ public class UserController : Controller
|
||||
|
||||
[Route(LightlessAuth.Ban_Uid)]
|
||||
[HttpPost]
|
||||
public async Task MarkForBanUid(string uid)
|
||||
public async Task MarkForBanUid([FromBody] string uid)
|
||||
{
|
||||
using var dbContext = await LightlessDbContextFactory.CreateDbContextAsync();
|
||||
|
||||
@@ -38,7 +38,7 @@ public class UserController : Controller
|
||||
|
||||
[Route(LightlessAuth.User_Unban_Uid)]
|
||||
[HttpPost]
|
||||
public async Task UnBanUserByUid(string uid)
|
||||
public async Task UnBanUserByUid([FromBody] string uid)
|
||||
{
|
||||
using var dbContext = await LightlessDbContextFactory.CreateDbContextAsync();
|
||||
|
||||
@@ -69,7 +69,7 @@ public class UserController : Controller
|
||||
|
||||
[Route(LightlessAuth.User_Unban_Discord)]
|
||||
[HttpPost]
|
||||
public async Task UnBanUserByDiscordId(string discordId)
|
||||
public async Task UnBanUserByDiscordId([FromBody] string discordId)
|
||||
{
|
||||
Logger.LogInformation("Unbanning user with discordId: {discordId}", discordId);
|
||||
using var dbContext = await LightlessDbContextFactory.CreateDbContextAsync();
|
||||
|
||||
Reference in New Issue
Block a user