mirror of
https://github.com/miawinter98/just-short-it.git
synced 2024-11-22 08:19:54 +00:00
Removed unused code
This commit is contained in:
parent
286eb0723a
commit
f944ea4236
|
@ -1,5 +1,4 @@
|
|||
@page
|
||||
@using System.Globalization
|
||||
@model JustShortIt.Pages.UrlsModel
|
||||
@{
|
||||
ViewData["Title"] = "Urls";
|
||||
|
|
|
@ -20,8 +20,6 @@ public class UrlsModel : PageModel {
|
|||
private IDistributedCache Db { get; }
|
||||
|
||||
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
|
||||
BaseUrl = "https://localhost/";
|
||||
#else
|
||||
|
|
Loading…
Reference in a new issue