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:
parent
286eb0723a
commit
f944ea4236
|
@ -1,5 +1,4 @@
|
||||||
@page
|
@page
|
||||||
@using System.Globalization
|
|
||||||
@model JustShortIt.Pages.UrlsModel
|
@model JustShortIt.Pages.UrlsModel
|
||||||
@{
|
@{
|
||||||
ViewData["Title"] = "Urls";
|
ViewData["Title"] = "Urls";
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue