Skip to content
Snippets Groups Projects

Fix: Deal with "give all" endpoints (coscine/issues#2015)

Merged Petar Hristov requested to merge Hotfix/2015-PublicFilesVisibility into dev
1 file
+ 2
25
Compare changes
  • Side-by-side
  • Inline
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
@@ -39,17 +39,6 @@ namespace Coscine.Api.Project.Controllers
_analyticsLogObject = new AnalyticsLogObject();
}
/// <summary>
/// Searchs no filter
/// </summary>
/// <returns>Ok</returns>
[HttpGet("[controller]/allNoFilter/")]
public IActionResult SearchNoFilter()
{
var user = _authenticator.GetUser();
return Ok(GetSearchResults(user.Id, "", ""));
}
/// <summary>
/// Returns results for the search word
/// </summary>
@@ -62,18 +51,6 @@ namespace Coscine.Api.Project.Controllers
return Ok(GetSearchResults(user.Id, encodedSearchWord, ""));
}
/// <summary>
/// Returns searched projects with no filter
/// </summary>
/// <param name="projectId">Id of the project</param>
/// <returns>Ok</returns>
[HttpGet("[controller]/projectNoFilter/{projectId}")]
public IActionResult SearchProjectNoFilter(string projectId)
{
var user = _authenticator.GetUser();
return Ok(GetSearchResults(user.Id, "", projectId));
}
/// <summary>
/// Returns searched projects
/// </summary>
@@ -316,4 +293,4 @@ namespace Coscine.Api.Project.Controllers
}
}
}
}
\ No newline at end of file
}
Loading