remove delete relation in relation controller, this is not used and shouldn't really be there if only having access to content.

This commit is contained in:
Shannon
2020-11-19 22:18:56 +11:00
parent 63fceebca0
commit 29c2bca012

View File

@@ -58,20 +58,5 @@ namespace Umbraco.Web.BackOffice.Controllers
return _umbracoMapper.MapEnumerable<IRelation, RelationDisplay>(relations);
}
[HttpDelete]
[HttpPost]
public IActionResult DeleteById(int id)
{
var foundRelation = _relationService.GetById(id);
if (foundRelation == null)
{
return new UmbracoProblemResult("No relation found with the specified id", HttpStatusCode.NotFound);
}
_relationService.Delete(foundRelation);
return Ok();
}
}
}