renaming to integrate view

This commit is contained in:
Nicolas Constant 2020-07-01 19:25:00 -04:00
parent 593c6c7be9
commit a947545087
No known key found for this signature in database
GPG key ID: 1E9F677FB01A5688
3 changed files with 22 additions and 3 deletions

View file

@ -13,14 +13,14 @@ using Newtonsoft.Json;
namespace BirdsiteLive.Controllers namespace BirdsiteLive.Controllers
{ {
public class DebugController : Controller public class DebugingController : Controller
{ {
private readonly InstanceSettings _instanceSettings; private readonly InstanceSettings _instanceSettings;
private readonly ICryptoService _cryptoService; private readonly ICryptoService _cryptoService;
private readonly IActivityPubService _activityPubService; private readonly IActivityPubService _activityPubService;
#region Ctor #region Ctor
public DebugController(InstanceSettings instanceSettings, ICryptoService cryptoService, IActivityPubService activityPubService) public DebugingController(InstanceSettings instanceSettings, ICryptoService cryptoService, IActivityPubService activityPubService)
{ {
_instanceSettings = instanceSettings; _instanceSettings = instanceSettings;
_cryptoService = cryptoService; _cryptoService = cryptoService;

View file

@ -0,0 +1,19 @@

@{
ViewData["Title"] = "Index";
}
<h1>Debug</h1>
<form asp-controller="Debug" asp-action="Follow" method="post">
<!-- Input and Submit elements -->
<button type="submit" value="Submit">Follow</button>
</form>
<form asp-controller="Debug" asp-action="PostNote" method="post">
<!-- Input and Submit elements -->
<button type="submit" value="Submit">Post Note</button>
</form>

View file

@ -10,6 +10,6 @@
@if (HtmlHelperExtensions.IsDebug()) @if (HtmlHelperExtensions.IsDebug())
{ {
<a class="nav-link text-dark" asp-area="" asp-controller="Debug" asp-action="Index">Debug</a> <a class="nav-link text-dark" asp-area="" asp-controller="Debuging" asp-action="Index">Debug</a>
} }
</div> </div>