1
0
Fork 0
mirror of https://github.com/miawinter98/just-short-it.git synced 2024-11-22 16:29:53 +00:00

Removed unused code

This commit is contained in:
Mia Rose Winter 2023-04-19 15:32:52 +02:00
parent 286eb0723a
commit f944ea4236
Signed by: miawinter
GPG key ID: 4B6F6A83178F595E
2 changed files with 0 additions and 3 deletions

View file

@ -1,5 +1,4 @@
@page @page
@using System.Globalization
@model JustShortIt.Pages.UrlsModel @model JustShortIt.Pages.UrlsModel
@{ @{
ViewData["Title"] = "Urls"; ViewData["Title"] = "Urls";

View file

@ -20,8 +20,6 @@ public class UrlsModel : PageModel {
private IDistributedCache Db { get; } private IDistributedCache Db { get; }
public UrlsModel(IConfiguration configuration, IDistributedCache db) { public UrlsModel(IConfiguration configuration, IDistributedCache db) {
// TODO display error on page instead
BaseUrl = configuration.GetValue<string>("BaseUrl") ?? throw new ApplicationException("BaseUrl not set");
#if DEBUG #if DEBUG
BaseUrl = "https://localhost/"; BaseUrl = "https://localhost/";
#else #else