Add proper filter support.

This commit is contained in:
jvyden 2021-10-23 05:33:55 -04:00
commit e40c954570
No known key found for this signature in database
GPG key ID: 18BCF2BE0262B278

View file

@ -1,3 +1,4 @@
using System.IO;
using System.Threading.Tasks;
using LBPUnion.ProjectLighthouse.Types;
using Microsoft.AspNetCore.Mvc;
@ -27,10 +28,12 @@ namespace LBPUnion.ProjectLighthouse.Controllers {
public IActionResult Notification() {
return this.Ok();
}
/// <summary>
/// Filters chat messages sent by a user.
/// </summary>
[HttpPost("filter")]
public IActionResult Filter() {
return this.Ok();
public async Task<IActionResult> Filter() {
return this.Ok(await new StreamReader(this.Request.Body).ReadToEndAsync());
}
}
}