diff --git a/ProjectLighthouse/Helpers/GitVersionHelper.cs b/ProjectLighthouse/Helpers/GitVersionHelper.cs
index 857728fe..bc4e8cad 100644
--- a/ProjectLighthouse/Helpers/GitVersionHelper.cs
+++ b/ProjectLighthouse/Helpers/GitVersionHelper.cs
@@ -2,6 +2,7 @@ using System;
using System.IO;
using Kettu;
using LBPUnion.ProjectLighthouse.Logging;
+using LBPUnion.ProjectLighthouse.Types.Settings;
namespace LBPUnion.ProjectLighthouse.Helpers
{
@@ -50,6 +51,7 @@ namespace LBPUnion.ProjectLighthouse.Helpers
public static string CommitHash { get; set; }
public static string Branch { get; set; }
+ public static string FullVersion => $"{ServerStatics.ServerName} {Branch}@{CommitHash}";
public static bool IsDirty => CommitHash.EndsWith("-dirty");
public static bool CanCheckForUpdates { get; set; }
}
diff --git a/ProjectLighthouse/Pages/ExternalAuth/LandingPage.cshtml b/ProjectLighthouse/Pages/ExternalAuth/LandingPage.cshtml
new file mode 100644
index 00000000..b55f7660
--- /dev/null
+++ b/ProjectLighthouse/Pages/ExternalAuth/LandingPage.cshtml
@@ -0,0 +1,21 @@
+@page "/"
+@using LBPUnion.ProjectLighthouse.Helpers
+@model LBPUnion.ProjectLighthouse.Controllers.ExternalAuth.LandingPage
+
+@{
+ Layout = null;
+}
+
+
+
+
+
+ Project Lighthouse External Auth
+
+
+test
+
+
+
\ No newline at end of file
diff --git a/ProjectLighthouse/Pages/ExternalAuth/LandingPage.cshtml.cs b/ProjectLighthouse/Pages/ExternalAuth/LandingPage.cshtml.cs
new file mode 100644
index 00000000..1259e5a7
--- /dev/null
+++ b/ProjectLighthouse/Pages/ExternalAuth/LandingPage.cshtml.cs
@@ -0,0 +1,10 @@
+using Microsoft.AspNetCore.Mvc;
+using Microsoft.AspNetCore.Mvc.RazorPages;
+
+namespace LBPUnion.ProjectLighthouse.Controllers.ExternalAuth
+{
+ public class LandingPage : PageModel
+ {
+ public IActionResult OnGet() => this.Page();
+ }
+}
\ No newline at end of file
diff --git a/ProjectLighthouse/Program.cs b/ProjectLighthouse/Program.cs
index 695e2470..6b7a1a96 100644
--- a/ProjectLighthouse/Program.cs
+++ b/ProjectLighthouse/Program.cs
@@ -29,7 +29,7 @@ namespace LBPUnion.ProjectLighthouse
Logger.AddLogger(new LighthouseFileLogger());
Logger.Log("Welcome to Project Lighthouse!", LoggerLevelStartup.Instance);
- Logger.Log($"Running {ServerStatics.ServerName} {GitVersionHelper.CommitHash}@{GitVersionHelper.Branch}", LoggerLevelStartup.Instance);
+ Logger.Log($"Running {GitVersionHelper.FullVersion}", LoggerLevelStartup.Instance);
// This loads the config, see ServerSettings.cs for more information
Logger.Log("Loaded config file version " + ServerSettings.Instance.ConfigVersion, LoggerLevelStartup.Instance);
diff --git a/ProjectLighthouse/ProjectLighthouse.csproj b/ProjectLighthouse/ProjectLighthouse.csproj
index b576a35c..3bf71b1a 100644
--- a/ProjectLighthouse/ProjectLighthouse.csproj
+++ b/ProjectLighthouse/ProjectLighthouse.csproj
@@ -32,6 +32,10 @@
+
+
+
+
diff --git a/ProjectLighthouse/Startup.cs b/ProjectLighthouse/Startup.cs
index 93e41f3d..9169a7ed 100644
--- a/ProjectLighthouse/Startup.cs
+++ b/ProjectLighthouse/Startup.cs
@@ -29,6 +29,7 @@ namespace LBPUnion.ProjectLighthouse
public void ConfigureServices(IServiceCollection services)
{
services.AddControllers();
+ services.AddRazorPages().WithRazorPagesAtContentRoot();
services.AddMvc
(
@@ -152,7 +153,8 @@ namespace LBPUnion.ProjectLighthouse
app.UseRouting();
- app.UseEndpoints(endpoints => endpoints.MapControllers());
+// app.UseEndpoints(endpoints => endpoints.MapControllers());
+ app.UseEndpoints(endpoints => endpoints.MapRazorPages());
}
}
}
\ No newline at end of file