mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-08-05 11:28:39 +00:00
Add proper filter support.
This commit is contained in:
parent
b8573f3f06
commit
e40c954570
1 changed files with 6 additions and 3 deletions
|
@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue