-
- @if (!string.IsNullOrEmpty(Model.Message)) {
-
-
-
-
- @Html.Raw(Model.Message)
-
-
-
- }
-
-
Urls Administration
-
-
-
-
-
-
-
diff --git a/Pages/Urls.cshtml.cs b/Pages/Urls.cshtml.cs
deleted file mode 100644
index 05b129a..0000000
--- a/Pages/Urls.cshtml.cs
+++ /dev/null
@@ -1,83 +0,0 @@
-using JustShortIt.Model;
-using Microsoft.AspNetCore.Authorization;
-using Microsoft.AspNetCore.Mvc;
-using Microsoft.AspNetCore.Mvc.RazorPages;
-using System.Text.RegularExpressions;
-using System.Web;
-using Microsoft.AspNetCore.WebUtilities;
-using Microsoft.Extensions.Caching.Distributed;
-
-namespace JustShortIt.Pages;
-
-[Authorize]
-public class UrlsModel : PageModel {
- [BindProperty]
- public UrlRedirect? Model { get; set; }
- [BindProperty(Name="message")]
- public string? Message { get; set; }
-
- private string BaseUrl { get; }
- private IDistributedCache Db { get; }
-
- public UrlsModel(IConfiguration configuration, IDistributedCache db) {
-#if DEBUG
- BaseUrl = "https://localhost/";
-#else
- string url = configuration.GetValue