mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-29 00:18:39 +00:00
Change /filterResources to send back all resources
This commit is contained in:
parent
a01fd08c33
commit
06b89fec50
1 changed files with 6 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
|||
using System;
|
||||
using System.IO;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using ProjectLighthouse.Serialization;
|
||||
using IOFile = System.IO.File;
|
||||
|
@ -9,12 +10,16 @@ namespace ProjectLighthouse.Controllers {
|
|||
[Route("LITTLEBIGPLANETPS3_XML/")]
|
||||
[Produces("text/xml")]
|
||||
public class ResourcesController : ControllerBase {
|
||||
[HttpPost("filterResources")]
|
||||
[HttpPost("showModerated")]
|
||||
public IActionResult ShowModerated() {
|
||||
return this.Ok(LbpSerializer.BlankElement("resources"));
|
||||
}
|
||||
|
||||
[HttpPost("filterResources")]
|
||||
public async Task<IActionResult> FilterResources() {
|
||||
return this.Ok(await new StreamReader(Request.Body).ReadToEndAsync());
|
||||
}
|
||||
|
||||
[HttpGet("r/{hash}")]
|
||||
public IActionResult GetResource(string hash) {
|
||||
string path = Path.Combine(Environment.CurrentDirectory, "r", hash);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue